我正在做一个项目,我想在我的网站上直播不同类型的新闻 channel
这是我尝试播放 channel 的代码
<div class="video_box">
<iframe id="example_video_1"
class="video-js vjs-default-skin"
controls preload="none"
width="562"
height="370"
poster="images/movie_clip.png"
data-setup="{}"
src="link to the live streaming channel">
</iframe>
</div>
现在的问题是当我将 channel 的 src 放在我的 iframe src 标签中时它给出了错误并且 channel 无法播放。
我尝试在 channel 网站上播放的同一播放器上播放该 channel ,但仍然没有得到结果。
有什么帮助吗?
最佳答案
您应该从 channel 网站上提供的 channel iframe 链接中复制嵌入式源代码。不同的网站也会提供要在您的网站上显示的新闻 channel 的 iframe 链接。只需复制该 iframe 代码并将其粘贴到您的网站上,在您的网站页面上安装播放器并运行该页面, channel 将开始在您的页面上播放。
关于javascript - 网页上的直播 channel 流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20675743/