我刚刚了解到 YouTube 直播 URL 是随机变化的。我在 stackoverflow 上找到了这个 "YouTube Live Streaming embed code keeps changing"
所以我知道静态嵌入链接是这个 https://www.youtube.com/embed/live_stream?channel=[channel ID]
我想知道的是如何将 autoplay=1
添加到嵌入链接以及任何其他类似的功能。
30/7/2017 更新 - 此方法不适用于在 iPhone 6+ 上测试的 ios V10.3.3 播放器使 safari 和 chrome 崩溃!
最佳答案
其实很简单,只需要在最后加上参数autoplay=1
即可:
https://www.youtube.com/embed/live_stream?channel=[ channel ID]&autoplay=1
关于html - 如何控制 youtube 嵌入直播?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41318675/