Why will .m4v files not play on Firefox?
I'm running Firefox 11.0 on a Mac Pro running 10.7.3 and am unable to play .m4v files. Seems like Firefox wants to use Flash plugin instead of Quicktime plugin to play file. Fine. But it's not loading - I can see that it's not pulling the file down from the 'net.
Here's an example: http://ionapictures.com/showreel/stunts/exploding-ammo-dump.html
Any help greatly appreciated -- thank you!!!
Alle antwoorden (4)
There is code on that page that only shows the video for Webkit browsers (e.g. Google Chrome) and remvode the video tag for other browsers.
var video = document.getElementById('video'); if (video.canPlayType && video.canPlayType('video/x-m4v')) { // canPlayType is overoptimistic, so we have browser sniff. var ua = navigator.userAgent; if ((ua.indexOf('WebKit/') < 0 && ua.indexOf('MSIE') < 0) || ua.match(/MSIE [1-8]\./)) { // Only webkit-browsers can currently play this natively fallback(video); } } else { fallback(video); }
Other browsers get a Flash player, but there doesn't seem to be a FLV file specified in the code, so nothing happens.
flv=../../_Resources/player_flv_maxi.swf
<video controls="controls" autoplay="autoplay" preload="auto" width="720" height="405" id="video"> <source src="../../_Media/ff2-sizzle720.m4v" type="video/x-m4v" onerror="fallback(this.parentNode)" /><object id="player_flv_maxi.swf" type="application/x-shockwave-flash" data="../../_Resources/player_flv_maxi.swf" width="720" height="405"> <param name="movie" value="../../_Resources/player_flv_maxi.swf" /> <param name="flashvars" value="flv=../../_Resources/player_flv_maxi.swf&margin=0&showplayer=autohide&autoplay=1" /> <div style="width:720px; height:405px;" id="unrecognized"> <p>This browser cannot play the embedded video file.</p> </div> </object>
Cor-el thanks for your reply. On my FTP site there IS a folder called "Resources" and in this folder there is a file called "player_flv_maxi.swf." Is this the "FLV file" you speak of? And when you say that it's not specified in the code, I see it mentioned several times in the code you cut and pasted in your reply. Is it just not written correctly? I am NOT an HTML person - I'm using Sandvox - a website builder tool, and it does all the code"invisibly."
Thanks again...
Yes, that is the player, but there should be a FLV specified in the flashvars that the Flash player can play.
Did you upload any .flv files or are there only .m4v files on that server?
No, there are only .m4v files, and some .mov files...