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, pick Copy Embed URL from the Edit menu. The link will look like this:
Be sure to replace [yourdomain] with your website's domain name. Ensure that it matches your full domain exactly, including any subdoman such as www.
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>