I do live streaming with YouTube and I can watch it on my site by coping the embed code into my site
Its looks like this below
<iframe width="640" height="360" src="https://www.youtube.com/embed/gz54fede3Y" frameborder="0" allowfullscreen></iframe>
But recently I discovered that every time I do a live stream, I have to start updating the embeded code on my site each time with the one that will be generated from my live channel.
This is because it keeps regenerating a different code. Its so frustrating to do this, is there a way to get a particular embed code that will not change so I don't have to worry about this, or is there a setting that I am not aware of.
The stream key is static and does not change unless you regenerate it on YouTube. Therefore, you only have to make this setting once. So once you have inserted the stream key into OBS Studio, both interfaces are connected and work hand in hand. After you have copied your stream key, open OBS Studio on your computer.
Go to youtube.com/account_advanced. Copy your Channel ID shown below. Now, type in youtube.com/channel/PASTE YOUR CHANNEL ID HERE/live. Your permanent YouTube Live Page should look like this: www.YouTube.com/channel/UC7qJ6z7MVPtqP8DXv0mXGaA.
Make sure you are using the latest version of your encoder software. If not, update your encoder to the latest version. Check the look and sound of your stream directly in the encoder. If your stream looks or sounds bad: There may be a problem with the quality of your audio and video sources routed to your encoder.
There is a static URL to embed the video player for the "Stream now" stream. It is currently not exposed anywhere in the UI, but we will fix that soon (hopefully.)
It looks like this: https://www.youtube.com/embed/live_stream?channel=[channel ID]
You can also use a YouTube Gaming link, like so: https://gaming.youtube.com/embed/live_stream?channel=[channel ID]
You can determine your channel ID by going to https://www.youtube.com/account_advanced and copying the string after "YouTube Channel ID".
Once you've got this link, you can use it in the "src" attribute of your embed code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With