Search code examples
htmlyoutubeembedliveautoplay

How to control youtube embed live stream?


I have just learned that YouTube live stream URL is randomly changing. I found this on stackoverflow "YouTube Live Streaming embed code keeps changing" so I know the the static embed link is this https://www.youtube.com/embed/live_stream?channel=[channel ID]

What I would like know is how to add autoplay=1 to the embed link and any other functions like this.

30/7/2017 Update - this method does not work on ios V10.3.3 tested on an iPhone 6+ the player crashes safari and chrome !


Solution

  • It's really simple, just add the parameter autoplay=1 at the end:

    https://www.youtube.com/embed/live_stream?channel=[channel ID]&autoplay=1