HTML视频代码无效 [英] HTML video tag not working
本文介绍了HTML视频代码无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写了以下html代码来显示视频
I have written the following html code to show video
<h4 style="color:#419503;">Visit this fun video</h4>
<video width="400" controls>
<source src="video/KateSafari3.mp4" type="video/mp4">
<source src="mov_bbb.ogg" type="video/ogg">
Your browser does not support HTML5 video.
</video>
当我在Crome中运行html页面时,它会显示视频控件但视频没有显示。
When I run the html page in Crome it shows the video control but video not showing.
推荐答案
根据 http://www.encoding.com/html5/ [ ^ ]我说最明显的问题可能是缺少MP4视频编解码器在运行浏览器的系统上,ogg文件还需要一个Vorbis编解码器。
Chrome支持记录了类似的问题 - > https://productforums.google.com/forum/#!topic/chrome/EdX_Crq5evw [ ^ ]
希望这会有所帮助。
As per http://www.encoding.com/html5/[^] I'd say the most obvious issue might be the lack of MP4 video codec on the system where the browser is running, additionally a Vorbis codec will be needed for the ogg file.
There's a similar issue logged on the Chrome Support -> https://productforums.google.com/forum/#!topic/chrome/EdX_Crq5evw[^]
Hope this helps.
这篇关于HTML视频代码无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文