A YouTube broadcast can be embedded into your website. YouTube's live chat comments can also be embedded, if desired. Here are some quick steps to set this up:
- First, schedule the YouTube broadcast. This can be done in Ecamm Live by picking New Scheduled Live... from the scheduling menu in the bottom right corner of Ecamm Live's main window. Alternatively, you can schedule the broadcast using YouTube Studio. Ensure that you have scheduled a Public or Unlisted broadcast. (Private broadcasts cannot be embedded.)
- Once the broadcast has been scheduled, ensure the broadcast is selected in Ecamm Live's scheduling menu. Then click the Edit menu up at the top of the screen beside the menu.
- There are two options for getting an embedding link in the Edit menu. To copy just the embedding link, pick Copy Embed URL. This will copy a URL which can be used for embedding in sites that don't use HTML tags, (using an embedding plugin.) For websites that accept HTML, pick Copy Embed HTML. This will copy the HTML code for an IFRAME, which can then be pasted into the web pages source.
An embed URL looks like this:
Embed HTML looks like this:
<iframe width="560" height="315" src="https://www.youtube.com/embed/3t0YQ1gN8E" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
The properties in the IFRAME tag, including width, height, and autoplay can be customized as needed.
Embedding the YouTube Live Chat
YouTube chat comments can be embedded as a separate IFRAME.
To embed the live chat comments, use the following format as the IFRAME src:
Replace VIDEOID with your video's ID, and YOURDOMAIN with your website's domain name.
The IFRAME tag would like like this example:
<iframe width="700" height="400" src="https://www.youtube.com/live_chat?v=3t0YQ1gN8E&embed_domain=ecamm.com" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
(Be sure to replace the video ID and domain with your own details.)