When embedding is allowed, and if third-party websites are embedding your THEOplayer video player,.You do not need to whitelist every domain which embeds your tag. Thus, you need to specify that a page which contains your THEOplayer Web SDK, may be embedded. Deploying your THEOplayer SDK on a non-whitelisted domain would result in a license error. Typically, you only whitelist domains where you deploy THEOplayer. your THEOplayer Web SDK) has a set of whitelisted domains. Player (element, playerConfiguration ) Įmbedding THEOplayer through an tag is disabled by default. You can easily allow embedding by setting the isEmbeddable-flag in the THEOplayer's PlayerConfiguration to true, as demonstrated by the code snippet below. Adjust UI and UX: you need to style your iframe tag.Consider limitations: you need to be aware of the constraints and how to address them.Decide approach: you need to decide on a strategy on how to dynamically load content.Enable fullscreen (and other features): you might want to use the HTML API to allow certain features like fullscreen and autoplay.Allow embedding: you need to use the THEOplayer API to allow for embedding.When embedding THEOplayer through an tag, you need to do a couple of things: We do argue that you should try to avoid using iframes, because iframes can be evil and can cause usability issues.įrom our experience, most services and companies are trying to phase out iframes, and are instead embedding JavaScript code to render the same result. We won't go into the pros and cons of using an in this article. (You set the width and height of the on your page, as can be seen from the above code snippet.) a video player) fills the entire browser window,Īnd thus has a width and height of 100%. When you design and develop a page which should be embedded through an, you optimize for this embedding use-case. If you opened this link, you would see that it is a YouTube video which fits the entire size of your browser window.Īs you can see, the embedded page is quite different from the " real" YouTube page. Adding this code snippet to the HTML of your website would embed, which is a YouTube video. The code snippet above represent an actual tag. They are all HTML website pages which are embedded on another HTML website page.) That Facebook or Twitter post which was embedded on that blog? That could also be an iframe. ( That YouTube video on that news website you just visited? That's an iframe. You come across iframes all the time when using the web. Īn iframe is an HTML tag, the tag, which allows you to embed an HTML page (i.e. Just want to copy-paste code and view a live example? Skip to the demo. Demo: resulting implementation and live demo.Implementation: which THEOplayer APIs are relevant and how can I achieve my use-case? The goal of this guide is to help you embed THEOplayer through an by going through the following topics: Regardless of your use-case: you can embed THEOplayer through an iframe on first-party and third-party domains. You are using a service or framework which doesn't allow you to include custom JavaScript, but it does allow you to embed an.You want to facilitate social sharing on third-party websites through your viewers.You might want to easily embed your videos across different domains and brands.Embedding a video player through an can be interesting for a number of reasons:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |