News for hackers. Stuff that matters.
Re:HTMLMediaElement.canPlayType() by LeoNatan25 on Sunday February 27, 2022 @01:50PM (#30491283)
A “video file” is a misnomer. A “video file” (such as mp4) is actually a container with several different tracks, which can be one or more video tracks, audio, subtitles, metadata (chapters, DV, synchronization) and others. If the browser is not aware of any of these, it will not be able to provide the information you require (but is a probably good indicator that the track is t supported).
Re:HTMLMediaElement.canPlayType() by kevincox on Sunday February 27, 2022 @04:04PM (#30492486)
Well that is a problem of the API, but at least it can recommend what the best string to put in the source tag's type attribute.

> If the browser is not aware of any of these

In my case the browser is playing the file, so it should know what info is there. But ideally it would at least make a best-effort attempt.