Embedding Flux

Flux sites can be embedded into third party applications.

Creating the Embed Code

Typically, you would embed the published version of a Flux site into a third party application.

For example, if we published our Flux site to https://example-site.com inside the Flux platform, our embed code would be:

<iframe src="https://example-site.com" allow="encrypted-media; autoplay;" allowfullscreen></iframe>

Adding the Embed

  1. Open your HTML editor (This will vary depending on the platform and technologies you use).

  2. Paste the code into your web page where you want it to appear.

  3. Save and deploy your changes.

Troubleshooting

DRM content is not playing

To enable playback of DRM content with the embedded site, you must include the allow="encrypted-media; HTML property value.

If you need both DRM and autoplay, you must include the encrypted-media and autoplay HTML property values with semi-colons. i.e. allow="encrypted-media; autoplay;"

Video Content Cannot Be Made Fullscreen

To enable embedded content to enter fullscreen mode, you must include the allowfullscreen HTML property.

Content is not autoplaying

To enable autoplay of video or audio content, you must include the allow="autoplay; HTML property value.

If you need both DRM and autoplay, you must include the encrypted-media and autoplay HTML property values with semi-colons. i.e. allow="encrypted-media; autoplay;"

Last updated

Was this helpful?