Saturday, 10 October 2020

Microsoft Edge false support of AV1 on canPlayType

Microsoft Edge 85 has a false positive indication of an AV1 video codec support.

Checking like this returns "probably" which usually indicates that video codec is safe to use.

videoElement.canPlayType('video/webm; codecs="av01.0.05M.08"')

Putting AV1 source element causes Edge to pick AV1 over other codecs and fail to play it.

<video playsinline loop autoplay muted>
    <source type="video/webm; codecs='av01.0.05M.08'" src="av1.webm">
    <source type="video/webm; codecs='vp9'" src="vp9.webm">
    <source type="video/mp4; codecs='avc1.64001f'" src="avc.mp4">
</video>

Is there any other way to detect codec support more effectively with no false positives as mentioned above?



from Microsoft Edge false support of AV1 on canPlayType

No comments:

Post a Comment