Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.ogg video not playing in firefox

We're just getting started with html5 video, and cannot seem to get .ogg files to play in Firefox, any tips? Here is the source we are using:

<video width="640" height="360" poster="http://video.thewebreel.com/episode_001/episode_001.jpg" controls autoplay autobuffer>
  <source src="http://video.thewebreel.com/episode_001/episode_001.ogg" type="video/ogg" type='video/ogg; codecs="theora, vorbis"'/>
  <source src="http://video.thewebreel.com/episode_001/episode_001.mp4" type="video/mp4" />
</video>

The live example can be seen here:

http://thewebreel.com/2010/05/02/episode-1.html

However we are totally baffled, everything seems exactly right.

like image 358
JP Silvashy Avatar asked May 03 '10 06:05

JP Silvashy


People also ask

Does Firefox support Ogg?

Open media Vorbis audio, Opus audio, Theora video, and VP8 video are free audio/video compression formats for use without patent restrictions. They can be viewed in Firefox if they are embedded in the following container formats: Ogg (. ogg, . oga, .

Why do some videos not play on Firefox?

How can I fix, Firefox not playing the videos? Try clearing the cache files and updating the Firefox. If this does not fix your problem, try disabling the extensions and enabling autoplay. If that still doesn't work, then reset Firefox.

Can browsers play Ogg files?

Chrome, Firefox and Opera support Ogg Vorbis. Chrome, Safari and Internet Explorer support AAC. So if you only use Ogg Vorbis you miss Safari and Internet Explorer, and if you only use AAC you miss Firefox and Opera.

Which browser does not support Ogg files?

If you care to support people who haven't upgraded in 5 years, OGG has very good support in Firefox, Chrome, and Opera. IE, Edge, and Safari don't support it at all.


2 Answers

I uploaded your .ogg to my server suspecting it was a server issue and it's working fine on my server

I'm guessing it's because your web server is replying with

Content-type: binary/octet-stream

Try adding the mime types to nginx...

Open up the Nginx mime type configuration file, eg: /etc/nginx/mime.types

Add these lines after the last video mime type

video/ogg                             ogm;
video/ogg                             ogv;
video/ogg                             ogg;
like image 196
Galen Avatar answered Nov 17 '22 05:11

Galen


In one of the links mentioned, the correct way to play ogg files is..

<audio preload="auto" controls="controls">
  <source src="media/song.ogg" type="application/ogg">
</audio>

Thanks to the person who pointed it out here. HTML5 video (mp4 and ogv) problems in Safari and Firefox - but Chrome is all good

like image 28
Viju Avatar answered Nov 17 '22 03:11

Viju