Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YouTube Live Streaming embed code keeps changing

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.

like image 524
Plumptre Ademola Avatar asked Aug 29 '16 11:08

Plumptre Ademola


People also ask

Does YouTube stream key change?

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.

How do you get a permanent YouTube link?

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.

Why does my YouTube Live stream keep stopping?

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.


1 Answers

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.

like image 157
Marc Chambers Avatar answered Oct 15 '22 20:10

Marc Chambers