开发者

mediaelement.js MP4-Files in Firefox don't work

开发者 https://www.devze.com 2023-02-28 02:24 出处:网络
I have a problem with the current version of the mediaelement-plugin in wordpress. The video format I\'m using is a mp4-file.

I have a problem with the current version of the mediaelement-plugin in wordpress. The video format I'm using is a mp4-file. In IE, Safari, Chrome it works without problems but in Firefox it shows only the HTML5-Player wi开发者_开发百科th a "X" in the middle. I found out that mp4-files don't work in firefox, so my question is: Is there any possibility to show the flash-plugin in firefox instead.


Is it showing up with a broken flash player or a broken HTML5 video element? my understanding is that MediaElement.js will attempt to fallback to Flash on Firefox if you are using an mp4 file. If you're only using an mp4 file and Flash isn't working, this could explain what you're seeing.

You could either try adding another format (WebM or Ogg on the latest FireFox) or check to see if Flash is working. In general, you should be including MP4, WebM, and Ogg (in that order) to ensure compatibility across the most browsers.


Expression this.videoRegExp.test(a)?"video":"audio" returns an incorrect value in 50% of calls. It causes flash palyback loading problem. /(mp4|m4v|ogg|ogv|webm|flv|wmv|mpeg)/gi.test(a)?"video":"audio" fixes that issue.


not sure how the wordpress plugin works but it should have a flash fallback if the video isn't supported by the browser for html5. i haven't had any problems with the flash fallback for firefox with mp4 files.


cant work - I suggest you read this: http://diveintohtml5.ep.io/video.html It explain in detail what browser can display what codec

for Firefox and Opera you need Theora+Vorbis+Ogg - though with the newest versions of these browsers webm is working as well. basically you will always need mp4 + ogv + webm to make your videos work on all plattforms. more on that can be found in the article I linked above.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号