When I view this web page in my Windows 7 Safari 4.0.5…
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Audio Test</title>
</head>
<body>
<audio src="FurElise.ogg" controls="controls">nothin</audio>
</body>
</html>
…I get a white page that says ‘nothin’. It works in Firefox 3.6 and Opera 10.53, but not Safari. And yet, everywhere I look, people talk about Safari supporting the audio tag. Is this only on Macs, or am I doing something wrong?
(live example )
force
May 10, 2010, 6:31pm
2
Ogg isn’t supported in safari. Only MP3 and Wav are.
http://html5doctor.com/native-audio-in-the-browser/
Oi. I feel kind of silly. Thank you.
If you get “nothin” then you probably don’t have QuickTime installed. QuickTime is required to make <audio> work in Safari.
You can get Ogg to work in Safari by installing XiphQT. http://xiph.org/quicktime/
force
May 11, 2010, 9:51pm
5
I think the idea is to be able to get audio files to work natively without the user needing to install extra software.