[Webkit-unassigned] [Bug 229799] Safari TP 131 audio canPlayType() reports false negatives

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 7 22:11:07 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=229799

--- Comment #4 from Jean-Yves Avenard [:jya] <jean-yves.avenard at apple.com> ---
(In reply to Brion Vibber from comment #3)
> This affects video codecs as well as audio; canPlayType() reports '' for
> 'video/webm; codecs="vp8"' and 'video/webm; codecs="vp9"' even if they play
> back just fine in <video>.
> 
> Same behavior on TP 131 and the current beta of Monterey.
> 
> This is a hard blocker for us being able to switch from WebAssembly decoding
> to native playback of WebM video on Wikipedia.

canPlayType will only return "" if either "opus" or "vorbis" was specified in the codec string.

It wouldn't affect type with just video.

Here are the results for the various queries
https://jyavenard.github.io/htmltests/tests/canPlayType.html

v.canPlayType("video/mp4; codecs="avc1.42E01E") = probably
v.canPlayType("video/mp4; codecs="vp9") = 
v.canPlayType("video/mp4; codecs="av1") = 
v.canPlayType("video/mp4; codecs="opus") = 
v.canPlayType("video/mp4; codecs="vorbis") = 
v.canPlayType("video/mp4; codecs="vp8") = 
v.canPlayType("video/webm; codecs="avc1.42E01E") = 
v.canPlayType("video/webm; codecs="vp9") = probably
v.canPlayType("video/webm; codecs="av1") = 
v.canPlayType("video/webm; codecs="opus") = 
v.canPlayType("video/webm; codecs="vorbis") = 
v.canPlayType("video/webm; codecs="vp8") = probably


as you can see, when you specify vp8 and vp9 codec, the answer is "probably"

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210908/6be1a8fd/attachment-0001.htm>


More information about the webkit-unassigned mailing list