JSFiddle - React, Tailwind, and code Playground
JavaScript
var checkHtmlSupport=function(){
var v=document.createElement('video');
var videoSupport=true;
videoSupport=!!(v.canPlayType&&v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,''));
return videoSupport;
}
document.body.appendChild(document.createTextNode(checkHtmlSupport()));