Firefox playback problems...?

6 replies [Last post]
Joined: 11/30/2011
Points: 9

For some reason I can't get playback in Firefox. Works in Safari, Chrome, iPhone etc. I have the appropriate file types uploaded. Why do the video source type tags for h264 = m4v and ogg = ogv?

The test page is here: http://johnarneson.com/swim.html

Any ideas much appreciated.

newb

Joined: 02/22/2009
Points: 76

your video is responding:
Content-Type: text/plain

you need your video asset to send the correct headers ( content-type: video/ogg OR content-type: video/webm ) for firefox to play it see:
https://developer.mozilla.org/En/Using_audio_and_video_in_Firefox

for more information

Joined: 11/30/2011
Points: 9

Thanks for your quick reply. That doesn't seem to fix it, and isn't the way the code reads on the widget sample code...?

I've set up http://johnarneson.com/fish.html as you've suggested, please let me know if I've misinterpreted or missed something.

Thanks,
John

Joined: 02/22/2009
Points: 76

The embed code on you page does not seem to point to real video files. See your source tags ... are just /movies/.webm .. you should point it to the asset url.

   <video width="600" height="400" poster="http://johnarneson.com/images/swim.jpg" duration="02:26" preload="auto"  loop>
        <source type="video/webm" src="http://johnarneson.com/images/movies/.webm" />
        <source type="video/h264" src="http://johnarneson.com/images/movies/.m4v" />
        <source type="video/ogg" src="http://johnarneson.com/images/movies/.ogv" />
      </video>
Joined: 11/30/2011
Points: 9

Thanks, I'm more confused now. Changed the video/ogv tag to ogg but everything else seemed correct. Why does this call for a sound source file to then play a video file? The file names were included in my source code and I confirmed that's the correct directory location through ftp, am I missing something? This is what's there:

Joined: 02/22/2009
Points: 76

Yes you are missing the idea of content type headers. you can look up this concept on Wikipedia. Content headers are sent out by the webserver you may need contact your web service provider and make sure they support sending the correct mime type for webm and ogg videos.

Joined: 11/30/2011
Points: 9

Thanks Michael, that was the issue. I grabbed the Firefox sample .htaccess file from here: https://developer.mozilla.org/en/Sample_.htaccess_file and added two lines: AddType audio/ogg oga ogg, AddType video/ogg ogv to the top and it works.