Re:HTMLMediaElement.canPlayType()
by Bilal_io on Sunday February 27, 2022 @12:24PM
(#30490405)
MediaCapabilites.IsTypeSupported was very unhelpful when used to check if mimetype is supported for encoding instead of decoding. But perhaps that's not what it was created for.
[ Parent
| on HN ]
Re:HTMLMediaElement.canPlayType()
by DaleCurtis on Sunday February 27, 2022 @01:00PM
(#30490723)
Yes, it was originally for decoding information only.
https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabi... is on the way. I believe the latest Safari preview has it implemented and Chromium should have it shortly as well.