Firefox To Play Ogg
I have an ogg/audio file converted from mp3 using Alt WAV MP3 Ogg Converter. When I drag and drop the file in Firefox or in Google Chrome, the audio plays nicely. But when a use the following code to place the file inside a page it only works on Chrome.
My code is simple as that:
<audio controls> <source src="foo.ogg" type="audio/ogg"> </audio>
Someone can tell me why?
I think you can find your answer here. In my case I had to add MIME types to our nginx server.
Because this works on IE:
<source src="foo.ogg" type="audio/mp3">`
And this works on Chrome, Mozilla, Safari, Opera
<source src="foo.ogg" type="audio/ogg">