Html Firefox 报告“未找到支持格式和 Mime 类型的视频”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32369721/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 18:09:12  来源:igfitidea点击:

Firefox reports "No Video with Supported Format and Mime Type Found"

htmlfirefoxvideohtml5-videomime-types

提问by Naveen Maurya

This code worked fine for mp4 video, but it did not work for .3gp, .aviand .flvfiles.

此代码适用于 mp4 视频,但不适用于.3gp,.avi.flv文件。

<video width="320" height="240" controls>
  <source src="<s:url action='downappsuservideo'> 
                   <s:param name="id" value="#session['id']"/>
               </s:url>" >
  Your browser does not support the video tag.
</video>

回答by Andrea Ligios

You need to check for the limitations that Firefox (as any other browser) may have when working with HTML5.
The HTML5 universe is constantly evolving, and the missing support of some functionality, codec, etc. will eventually be introduced soon or later in the future.

您需要检查 Firefox(与任何其他浏览器一样)在使用 HTML5 时可能存在的限制。
HTML5 世界在不断发展,对某些功能、编解码器等的缺失支持迟早会被引入。

Meanwhile, check what Firefox is capable of in the following page:

同时,在以下页面中检查 Firefox 的功能:

HTML5 TEST

HTML5 测试



At the time of writing, it scores an overall 465out of 555, of which 29out of 33on video playback.

在撰写本文时,它在555分中获得了465分,其中33分中的29分是视频播放。

Specifically, the CODECsituation is the following:

具体来说,CODEC的情况如下:

MPEG-4 ASP support    : No  ?    
H.264 support         : Yes ?
H.265 support         : No  ?
Ogg Theora support    : Yes ?
WebM with VP8 support : Yes ?
WebM with VP9 support : Yes ?

Then

然后

  • give the user the link to download the video when unreproducible, or
  • use another player as a fallback, or
  • convert your videos, or
  • whatever.
  • 在不可复制的情况下向用户提供下载视频的链接,或
  • 使用其他玩家作为后备,或
  • 转换您的视频,或
  • 任何。

Also read Mozilla's article on supported media formats.

另请阅读Mozilla 关于支持的媒体格式的文章