Is there any JavaScript or any other way of checking for html5 video support?
A:
One way is to embed the html5 tags, and then put the alternate video viewer within the video tags as a "fallback". The fallback will get displayed if a browser doesnt recognize the tag. Its not strictly 'detecting' html5 video support, but may suit your needs.
<video src='...'>
<embed flash player instead>
</video>
GrandmasterB
2010-08-25 21:59:54
A:
use:
<script>
alert(!!document.createElement('video').canPlayType);
</script>
if it alerts true implies that your browser supports HTML5 video tag
Here is the url to check HTML5 Browser compatibility http://www.html5test.com/ Open the url in your browser to test how well your browser supports html5
Meryl
2010-08-26 16:20:53