I discovered what appears to be a bug in Opera where it will not play an audio file. The play button is disabled and the volume has a mark through it. I've tested on IE, FireFox, Chrome and Safari and the audio file plays perfectly. There are no answers to this problem I could find anywhere that actually work. The files OGG, WAV, & MP3 play perfectly alone as well, so I'm 100% sure the files are good and the paths are good too (if the paths weren't correct, the other browsers would not play).
What's the secret magic trick to get Opera to actually support HTML5 AUDIO tags? Here is a test snippet that works in everything I can throw at it (except Opera - any version)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<audio controls>
<source src="audio/SEGMENT_1_MINI_LOTS.ogg" type="audio/ogg" />
<source src="audio/SEGMENT_1_MINI_LOTS.mp3" type="audio/mpeg"/>
<source src="audio/SEGMENT_1_MINI_LOTS.wav" type="audio/wav"/>
Please upgrade your browser.
</audio>
</body>
</html>
<audio>
is supported since version9.0
, that's 17 versions back – Adam Azaddocument.querySelector('audio').error.code
? – Igor Gilyazovautoplay
attribute to make auto play the file ... – Adam Azad