问题描述
我在YouTube上直播了很多视频,从昨天开始,我遇到了一件奇怪的事情:
我将直播URL嵌入到我的网站中.它是youtube.com/embed/ABCDE
(正常的嵌入链接).该链接用于显示当前直播,而不是特定视频.例如:
我正在流式传输,您可以在youtube.com/embed/ABCDE
上观看.完成后,视频将获得自己的网址,例如youtube.com/watch?v=FGHIJ
.下次我将进行流媒体播放时,用户可以在youtube.com/embed/ABCDE
上观看该流媒体(这是一个不变的永久URL).
现在,每次流式传输时,直播都会首先获得自己的链接,这意味着每次流式传输时我都必须手动更新嵌入代码.
我对Google,SO和YouTube进行了一些研究,发现直播的永久网址为youtube.com/channel/CHANNEL_ID/live
.棒极了,但是我找不到嵌入它的方法.
(我使用wordpress,但没有找到任何插件可以自动为我执行此操作.)
TL:DR; 如何将实时流嵌入到youtube.com/channel/CHANNEL_ID/live
页中?
该频道的实时流的嵌入URL为:
https://www.youtube.com/embed/live_stream?channel=CHANNEL_ID
您可以在 https://www.youtube.com/account_advanced
I stream live on youtube a lot and since yesterday I experience a weird thing:
I embedded the livestream URL in my site. it was youtube.com/embed/ABCDE
(normal embed link). That link used to show the current livestream and not a specific video. for example:
I'm streaming and you can watch it on youtube.com/embed/ABCDE
.When i'm finished, the video gets its own url, something like youtube.com/watch?v=FGHIJ
. In the next time I will stream, users can watch the stream on youtube.com/embed/ABCDE
(that was a permanent url that didn't change).
Now, every time I stream, the livestream get its own link at first place, which means I have to update my embed code manually every time I stream.
I researched a bit around Google, SO and YouTube and I found out that a livestream's permanent url is youtube.com/channel/CHANNEL_ID/live
. It's awesome and all, but I can't find a way to embed it.
(I use wordpress and I didn't find any plugin to do it automatically for me).
TL:DR; how to embed the livestream in the page youtube.com/channel/CHANNEL_ID/live
?
The embed URL for a channel's live stream is:
https://www.youtube.com/embed/live_stream?channel=CHANNEL_ID
You can find your CHANNEL_ID at https://www.youtube.com/account_advanced
这篇关于如何嵌入新的YouTube实时视频永久URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!