是否存在可能将视频播放器HTML5用作youtube视频的来源?
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
我想使用HTML5播放器嵌入来自youtube的视频。我已经尝试过this solution,但是没有用。
最佳答案
尝试使用IFRAMES
而不是<video>
。我无法使用HTMl5视频标签嵌入youtube视频。
试试这个会起作用
<iframe type="text/html"
width="320" height="240"
src="http://www.youtube.com/embed/VIDEO_ID"
frameborder="0">
</iframe>
关于html - 来自youtube的视频源html5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41855339/