WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
183852
Safari should be able to play WebM Opus audio
https://bugs.webkit.org/show_bug.cgi?id=183852
Summary
Safari should be able to play WebM Opus audio
Ashley Gullen
Reported
2018-03-21 08:53:29 PDT
Test URL:
https://www.scirra.com/labs/audioCodecTests/
Edge 17 will bring built-in support for Opus and Vorbis in Ogg or WebM containers in both <audio> and Web Audio. This aligns it with Firefox and Chrome in having built-in support for modern open audio codecs. Apparently Safari already supports the Opus audio codec for its WebRTC implementation [1]. However it is not possible to play either Ogg Opus or WebM Opus with <audio> or the Web Audio API in Safari. Safari is the last browser left that doesn't support Opus in <audio> or Web Audio. Adding support for it will considerably simplify the use of audio on the web, since it will mean there is consistent support for it across all major browsers. For example in our HTML5 game engine Construct 3 (editor.construct.net), we currently must ship a WebAssembly WebM Opus decoder, solely to support Safari. If Safari had built-in support - and it appears it already has the decoder for WebRTC - then we wouldn't need to ship our own decoder. [1]
https://webkit.org/blog/7726/announcing-webrtc-and-media-capture/
Attachments
Add attachment
proposed patch, testcase, etc.
Richard Bushell
Comment 1
2019-06-18 10:31:48 PDT
+1 for comprehensive support of Opus codec in Safari (MacOS and iOS) in WebM and MP4 containers. It is now supported in every other major browser!
Chris Dumez
Comment 2
2020-10-28 07:47:42 PDT
Note that this was the source of
Bug 218261
.
Ashley Gullen
Comment 3
2021-06-11 08:34:16 PDT
Safari 15 beta adds support for WebM Opus (thanks!) but only for <audio>, not decodeAudioData(), which is incompatible with existing web content. Please see issue 226922.
Brad Isbell
Comment 4
2022-05-14 13:17:13 PDT
Safari seems to still be unable to support Opus-in-WebM in an `<audio>` element. Is there something special that needs to be done, other than: ```html <audio src="some-audio-file.webm"></audio> ``` (File is served with `Content-Type: audio/webm;codecs=opus`.) Tested on Safari on iOS 15.4.1.
Ashley Gullen
Comment 5
2024-03-11 04:55:32 PDT
As of Safari 17.4, at long long last, it seems WebM Opus is now finally supported consistently across iOS and macOS devices. However issue 245428 still reproduces and continues to block us using WebM Opus in Safari. Meta point: nobody from Apple has updated this issue, so as usual we are left to figure things out for ourselves.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug