Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的代码:
<div class="fascia-animata-video"> <video> <source src="/video/myvideo.secondversion.ogv" type='video/ogg; codecs="theora, vorbis"'> </video> </div>
但它不会在 Firefox 上播放。如果我拖放视频,它可以正常播放。那么这个“视频”标签有什么问题呢?
尝试删除编解码器,让浏览器自行解决。
<source src="/video/myvideo.secondversion.ogv" type='video/ogg'>
你是在本地服务器上运行它吗?根据您在下面所说的,您需要告诉您的服务器如何提供 .ogv 文件。
如果您有权访问 .htaccess 文件,请添加:
AddType video/ogg .ogv