2
votes

I am using safari 5.1 version browser. Refer the screen shot about my safari.About Safari

I am executing the following audio tag as html file, the audio is not playing.

<!DOCTYPE html>
<html>
   <head>
      <title>Multi-Source Audio Player</title>
   </head>
   <body>
      <audio controls>
            <source src="data/horse.ogg" type="audio/ogg">
            <source src="data/horse.mp3" type="audio/mpeg">
      </audio>
  </body>
</html>

And also I test the audio with live sample w3school, its also no playing.

Please suggest how can I play HTML5 audio on safari 5.1.

1
I checked Network, console by inspect element, no service called and no error received.sureshunivers
side note: Safari 5.1 on Mac OS X 10.7 works fine. Did you install OGG codec on your Windows XP / did you install iTunes ?Raptor
Not installed OGG codec and iTunes.sureshunivers
Then you should re-order 2 sources. MP3 goes first.Raptor
I tried with reorder the sources. Still not playing. And also tried with attributes "autoplay". In chrome 24 it is playing good. Is need to upgrade safari for higher version?sureshunivers

1 Answers

1
votes

Do you have QuickTime installed? Safari needs QuickTime to play HTML5 audio and video. Daft I know but that's how it is.