Summary: | Safari reports WebM+VP9 support on macOS Big Sur Safari, but fails to play | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tomás Palmeirim <tomaspalmeirim> |
Component: | Media | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | jer.noble, joeyparrish, jrjdavidson, naktinis, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | Mac | ||
OS: | Other |
Description
Tomás Palmeirim
2020-09-17 10:34:26 PDT
This behaves correctly. WebM is only supported in MSE, and is not supported through file-based playback. So it is expected that MediaSource.isTypeSupported('video/webm') returns true but canPlayType('video/webm') returns "" (not supported). And the Shaka bug is unrelated to the query here; the video decoder returns an error (kVTVideoDecoderBadDataErr) when decoding the media in question. Thanks, Jer. That is useful info. I think it would be reasonable to close both bugs, since the underlying issue seems to be a failure to decode the content, presumably due to bad encoding. Unless, of course, you think the decoder error is a bug in Safari or macOS. (I should have thought it through more before sending the last comment.) > Unless, of course, you think the decoder error is a bug in Safari or macOS. (I should have thought it through more before sending the last comment.)
No, I think the shaka behavior is a bug in our WebM parser; we haven't yet implemented support for WebM Frames without a duration present. So the frames emitted from our parser have zero duration, and get removed by subsequent samples.
Just wanted to give a heads up that this or a related issue ("WebM Frames without a duration present" not being supported) seems to be live on machines that have updated to Big Sur Safari. I am getting "Shaka Error MEDIA.VIDEO_ERROR (3,,)" on the shaka test page: https://shaka-player-demo.appspot.com/demo/#audiolang=en-gb;textlang=en-gb;uilang=en-gb;asset=https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd;panel=HOME;build=uncompiled Could you confirm that you also see this? Should I file a separate issue about support for "WebM Frames without a duration present"? I think I might have run into this issue, i've got webm encoded videos that play fine on most devices, only not on macOS (iOS seems to be fine?) |