Does HTML5/JavaScript provide a function to check whether videos like .mp4 can be checked. Then I could use a fallback to webm or even if the check for webm compatibility fails, another alternative could be pushed.
Are there features for checking compatibility implemented?
I use the following snippet:
… if it doesn’t support MPEG4, then try to feed Flash fallback or WebM.