OGG Opus audio format is not supported in Safari. Are there any high-level (decoding?) libraries that make .ogg files playable in Safari?
Asked
Active
Viewed 3,467 times
2 Answers
2
Okay, finally I found the opus-recorder
module. Here is a nice example of how to decode Opus -> PCM -> WAV
and play it: https://github.com/chris-rudmin/opus-recorder/blob/master/example/decoder.html. Works like a charm in Safari.

Alexander Zinchuk
- 807
- 8
- 16
-1
You should just have fallback for browsers that don't support it. If you'd like to take a more complex approach this is always an option.
<audio controls>
<source src="audio.ogg" type="audio/ogg">
<source src="audio.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

learningtoanimate
- 949
- 6
- 22
-
1Not an option for me, unfortunately. I need to encode on the fly. – Alexander Zinchuk Jun 06 '20 at 08:14