Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3718

How to embed a Youtube LiveStream with ChannelID and edit it with Javascript API

$
0
0

I'm trying to embed a youtube livestream in my website.To be sure that it shows always the current livestream I use the channelID

<iframe src="https://www.youtube.com/embed/live_stream?channel=[MY_CHANNEL_ID]"></iframe>

Now I need to use the Javasript API to know if the live is playing or not, so I add the "enablejsapi" parameter

<iframe src="https://www.youtube.com/embed/live_stream?channel=[MY_CHANNEL_ID]?enablejsapi=1"></iframe>

After I added the "enablejsapi" parameter the src link is broken and the livestream is not loaded.

How can I fix it?


Viewing all articles
Browse latest Browse all 3718

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>