I would like to determine if a video can be played in the browser or not before the user tries to play the video.
For example, I have this video that when I inspect it the codecs returned are: MPEG-4 AAC, H.264. As far as I understand the codec is H.264.
On Developer.mozilla.org I found a nice list of popular codecs
Now, when I want to check this with javascript and I found code like this
MediaRecorder.isTypeSupported('video/mp4; codecs="avc1.42E01E')
Is it possible instead of using a specific h.264 level like avc1.42E01E
(which I don’t have) to lookup support for H.264 instead, something like
MediaRecorder.isTypeSupported('video/mp4; codecs="h.264')