Jonas Lincoln
Jonas Lincoln

Reputation: 9757

Audio in html5 not working in FF4/Safari

I got this audio link in my html5 document:

   <audio 
      src="http://sverigesradio.se/topsy/ljudfil/3017771.m4a" 
      type="audio/mp4" 
      controls="true" 
      preload="metadata" 
      title="Senaste sändningen från Radiosporten">
   Senaste sändningen från Radiosporten</audio>

It renders properly in chrome, but in FF4 it first flashes the controls normally and then I get a big "X". In safari, it seems to hang while reading metadata.

Is there a problem with my audio-tag or with the audio-file? Is the redirect a problem?

Upvotes: 5

Views: 2651

Answers (3)

inbarajan
inbarajan

Reputation: 31

Firefox doesn't support mp4, but you can use PCM audio standard like .WAV that supports firefox, safari & chrome.

Upvotes: 1

kapa
kapa

Reputation: 78671

See this page for Audio support:

http://html5doctor.com/native-audio-in-the-browser/

UPDATE: concerning m4a format (which is AAC as far as I know), Safari and Chrome should support it, maybe even IE9, but no others.

You might find some useful info here (talks about video, but video also needs audio codecs): http://diveintohtml5.ep.io/video.html

UPDATE 2: And a more up-to-date table posted by Tom Gullen.

Upvotes: 5

Ian Devlin
Ian Devlin

Reputation: 18870

Firefox doesn't support MP4 audio, it supports OGG audio only.

Upvotes: 5

Related Questions