Imnotanerd
Imnotanerd

Reputation: 1167

What is the current file support for <audio>?

I'm trying to figure out which audio files are compatible with the <audio> tags across all the browsers. I've seen sites that state that some use .mp3, and some use .ogg, but somewhere else I saw that all supported .wav. But those sites were outdated.

Is there any up-to-date information on the current support for <audio> for all browsers across all platforms?

Upvotes: 2

Views: 954

Answers (2)

AshleysBrain
AshleysBrain

Reputation: 22591

@animusion is wrong, Internet Explorer 9 does support the audio tag!

You only need two formats to cover all browsers today:

Ogg Vorbis (often .ogg): covers all browsers except IE and Safari, presumably because they hate the internet and don't want to support free formats.

AAC (often .m4a): covers Internet Explorer and Safari.

You should not use MP3.

Upvotes: 4

ilanco
ilanco

Reputation: 9957

This resource is pretty up to date : http://www.scirra.com/blog/44/on-html5-audio-formats-aac-and-ogg. Even MS has a new article on media tags, http://msdn.microsoft.com/en-us/magazine/hh781023.aspx

Upvotes: 0

Related Questions