Thursday 22 August 2013

The Best HTML Audio Solution

The example below uses the HTML5 'audio' element and tries to play the audio either as MP3 or OGG. If it fails, the code "falls back" to try the 'embed' element:



Problems:

  • You must convert the audio files into different formats
  • The 'embed' element cannot "fall-back" to display an error message

No comments:

Post a Comment