1
votes

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>
1
According to caniuse.com/audio the <audio> is supported since version 9.0, that's 17 versions backAdam Azad
I saw that chart, the player shows up, just won't play the files. I'm thinking it doesn't support ogg, mp3 or wav formats or their sub formats (sampling/resolution).MC9000
What is the result of document.querySelector('audio').error.code ?Igor Gilyazov
I just installed Opera, created a sample file on localhost it worked fine, and added autoplay attribute to make auto play the file ...Adam Azad
what file format? ogg? what's the sampling rate?MC9000

1 Answers

3
votes

Opera does NOT support 320Kbps / 48kHz audio formats.

Opera only works with 192x44, 128x44 and 48x22 OGG subformats.