Have you created your channel and have you started streaming to it? Then it is time to share it with your viewers! In this guide, we will show you how to do this, how to overwrite colors, and how to enable auto-play. To have a full overview of what's possible in terms of customization of the player, please refer to our Customize your THEOlive player guide.
Including a THEOlive channel on your page is very simple: all you need is our embed script and the channel ID. Below is a code snippet of how to include the channel with Channel ID
<your-channel-id> in your page. It will use all the settings as they are defined through the management console or API.
Three things are important here:
- You have to load the embed script:
- You have to create a
data-theo-live-idattribute, which has your channel ID as a value.
- You have to pass a width and height to the styling attribute to define the dimensions of your player. You can also choose to pass self-defined CSS classes to let the player adapt to every possible screen size. A guide how to auto-size the player can be found here.
The embed script will do all the magic to show a player playing your THEOlive stream on the page. It will also grab all the player settings that have been defined through the API and apply them to the player. For more information on how to customize your player, please refer to the Customize your THEOlive player guide.
Updated 12 days ago