Can somebody advise a single audio format to maximize compatibility between desktop browsers?
The program isn't audio driven and I consider audio and extra bonus.
Can somebody advise a single audio format to maximize compatibility between desktop browsers?
The program isn't audio driven and I consider audio and extra bonus.
The most common format that is utilized by most browsers is .wav Audio Formats and Browser Support. However with html 5 you can always specify fallbacks for browser that might not support that format e.g
<audio controls>
<source src="horse.wav" type="audio/wav">
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
There is no single audio format that works cross-browser. MP3 is supported by Safari, Chrome and IE9+, whereas Firefix and Opera both support WebM (and Ogg but WebM is better).
There are plans for Firefox to eventually support MP3 I hear, but I don't know when that is.
You could also use a library such as MediaElementJS which will automatically fallback to using Flash to play an audio file if the browser doesn't support it.