HTML视频永久静音只有Firefox

问题描述 投票:0回答:2

我在一个页面中包含了一个视频,并且到目前为止在Chrome或Safari中没有任何问题,但在Firefox上,viedos被静音并且音量无法更改。这是视频代码

<video src="video/test3.MOV" controls>
  <p>Your browser doesn't support HTML5 video. Here is a
</video>

有关如何解决此问题的任何想法?

html
2个回答
0
投票

可能是因为Firefox的版本太旧了。只有Firefox 21(或适用于Linux的Firefox 30)及以上版本才能支持mp4视频。即使它符合所需的版本,Firefox仍然存在问题,支持.mov文件中的某些mp4。有关firefox问题的更多信息here


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> 
© www.soinside.com 2019 - 2024. All rights reserved.