我在一个页面中包含了一个视频,并且到目前为止在Chrome或Safari中没有任何问题,但在Firefox上,视频静音且音量无法更改。这是视频代码
<video src="video/test3.MOV" controls>
<p>Your browser doesn't support HTML5 video. Here is a
</video>
有关如何解决这个问题的想法吗?
答案 0 :(得分:0)
可能是因为Firefox的版本太旧了。只有Firefox 21(或适用于Linux的Firefox 30)及以上版本才能支持mp4视频。即使它符合所需的版本,Firefox仍然存在问题,支持.mov文件中的某些mp4。有关firefox问题的更多信息here。
答案 1 :(得分:0)
提供其他编解码器。 .mp4和.webm是我一直提供的。 FFMpeg可以为您转码为这些格式。那应该可以解决你的问题。 Re:如何使用FFMPeg,请参阅Getting Started with FFmpeg, Introduction to the FFmpeg Command Line
这真的不难。查看here的页面来源。
<video controls poster="ThroughGeorgeMichaelPalaisGarnierParis.jpg">
<source src="ThroughGeorgeMichaelPalaisGarnierParis.webm" type="video/webm">
<source src="ThroughGeorgeMichaelPalaisGarnierParis.mp4" type="video/mp4">
I'm sorry; your browser doesn't support HTML5 video in WebM with VP8/VP9 or MP4 with H.264.
</video>