为什么HTML5视频不适用于谷歌浏览器? [英] Why HTML5 video does not work on google chrome?
本文介绍了为什么HTML5视频不适用于谷歌浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码:
my code:
<video width="600" height="400" controls="controls">
<source src="uploads/video/patientenhandset_uk_high.mp4" type="video/mp4" />
<source src="uploads/video/patientenhandset_uk_high.ogg" type="video/ogg" />
Your browser not supported this video.
</video>
这段代码是IE10,IE9,firefox和opera的作品。那么为什么不能在chrome中工作?
This code IE10, IE9, firefox and opera works. So why does not work in chrome?
推荐答案
我相信Chrome使用WebM格式( video / webm
),因此您可能需要将其作为另一个< source>
替代品。
I believe Chrome uses the WebM format (video/webm
), so you'll probably need to offer this as another <source>
alternative.
这篇关于为什么HTML5视频不适用于谷歌浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文