Embedding a player in an iframe can be interesting to facilitate social sharing, or to decouple the player service from the rest of the website. THEOplayer allows you to embed your player in external websites.
There are two important things to take into account:
- Allowing the license to be used on external domains.
- Enabling fullscreen.
Allowing embedding for THEOplayer 2.X
Using an iframe in THEOplayer 2.X is very simple. You only need to set the
isEmbeddable property of the player configuration to
true. More information can be found at Player API documentation.
Enabling fullscreen for players in an iframe
When embedding a player, it is important to know about the restrictions an iframe brings. One such restriction is the restriction on the content of the iframe going fullscreen. This can however be enabled using the