Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cele domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/hughmcguire/hughmcguire.net/wp-includes/functions.php on line 6121
HTML5 Audio Tag Mess – Hugh McGuire Press "Enter" to skip to content

HTML5 Audio Tag Mess

Good news: in the new HTML5 spec, you don’t need Flash or another plugin to play audio files from standards compliant browsers. Instead, you can put your audio link between <audio> tags, and all should be well.

New releases of Safari, Chrome, Firefox, and Opera all support the audio tag.

Bad news: Safari, Chrome, Firefox and Opera all support the tag, but they don’t all support the same codecs – or kinds of audio files. Here, from HTM5 Doctor, is a list of current support:

HTML5 browser codec support

Man.

You can solve the problem by offering all the codecs between the tags, so:


<audio>
<source src="librivox.ogg" />
<source src="librivox.mp3" />
<source src="librivox.wav" />
</audio>

Anyone have a better explanation for such a jumble?