如何嵌入新的 Youtube 直播视频永久 URL? [英] How to embed new Youtube's live video permanent URL?
问题描述
我经常在 youtube 上直播,从昨天开始我经历了一件奇怪的事情:
I stream live on youtube a lot and since yesterday I experience a weird thing:
我在我的网站中嵌入了直播 URL.它是 youtube.com/embed/ABCDE
(普通嵌入链接).该链接用于显示当前直播,而不是特定视频.例如:
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:
我正在直播,您可以在 youtube.com/embed/ABCDE
上观看.完成后,视频会获得自己的网址,例如 youtube.com/watch?v=FGHIJ
.在我下次直播时,用户可以在 youtube.com/embed/ABCDE
(这是一个未更改的永久网址)上观看直播.
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.
我对 Google、SO 和 YouTube 进行了一些研究,我发现直播的永久网址是 youtube.com/channel/CHANNEL_ID/live
.它很棒,但我找不到嵌入它的方法.
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.
(我使用 wordpress,但没有找到任何插件可以自动为我执行此操作).
(I use wordpress and I didn't find any plugin to do it automatically for me).
TL:DR;如何在页面youtube.com/channel/CHANNEL_ID/live
中嵌入直播?
TL:DR; how to embed the livestream in the page youtube.com/channel/CHANNEL_ID/live
?
推荐答案
频道直播的嵌入 URL 是:
The embed URL for a channel's live stream is:
https://www.youtube.com/embed/live_stream?channel=CHANNEL_ID
您可以在 https://www.youtube.com/account_advanced
这篇关于如何嵌入新的 Youtube 直播视频永久 URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!