Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 !

like image 867
Paul Avatar asked Nov 02 '25 12:11

Paul


1 Answers

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

like image 142
IvanRF Avatar answered Nov 04 '25 07:11

IvanRF