Re:HTMLMediaElement.canPlayType()
by msoad on Sunday February 27, 2022 @12:44PM
(#30490590)
problem is mime types are also as meaningless. This whole API is worthless as you can tell from the return values!
[ Parent
| on HN ]
Re:HTMLMediaElement.canPlayType()
by LeoNatan25 on Sunday February 27, 2022 @01:47PM
(#30491233)
It’s true. “video/mp4” really means nothing. At most, it’s a mime type for the file container, but exposes no information on the video and audio codecs contained in it. A better approach would be using this API for querying whether the video, audio and subtitle elements are playable, in addition to the container.