Answer the question
In order to leave comments, you need to log in
How to make a private broadcast on YouTube with the ability to embed on your site?
Hey! The situation is non-standard and not very Googled.
In general, we make broadcasts on YouTube with access via a link. But there is a need to make such broadcasts along with a chat, but on your website. When we close access via the link, then if we embed the player into the site, YouTube does not allow the broadcast to be turned on. Writes "At the request of the owner, this video is not played on other sites."
Is there really nothing that can be done but to make the broadcast open? I saw services for webinars, they use YouTube for broadcasts, I don’t think they have them open.
In general, how to solve this issue? Thank you!
Answer the question
In order to leave comments, you need to log in
You must have "Live broadcasts" and "Embedding live broadcasts" features
enabled
https://www.youtube.com/features
Embed
Set the stream to unlisted or public
Go to the “Watch page” (View on watch page link (lower right) in https://www.youtube.com/live_dashboard)
Click Share -> Embed to get the embed HTML code
example :
<iframe width="560" height="315" src="https://www.youtube.com/embed/XYZ123" frameborder="0" allowfullscreen></iframe>
Now the problem is: every time the stream stops and restarts, the ID changes.
To get a permanent URL, you need to change the link to use the Channel ID (12345 in this example):
<iframe width="560" height="315" src="https://www.youtube.com/embed/live_stream?channel=12345" frameborder="0" allowfullscreen></iframe>
Get the Channel ID from https://www.youtube.com/account_advanced. Not the User ID!
Add this into your website HTML, and open the website in anonymous browser window to check if the stream displays without error message.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question