In accordance with caniuse site, Opera supports audio
tag. In accordance with w3schools, mp3 is also supported by Opera. But this code doesn't work. Even the sample from w3schools doesn't work, if ogg part is removed -
<audio controls>
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
I've tested it with Opera 20.0.1387.77 running on Windows 7 64-bit (WoW64) thru Spoon.net. And, if it is not supported, then how should I capture the error and inform user? I've tried to use $("#audio").error.code
, but the error
is null
.