4
How do I make this script shows an HTML5 video instead of Flash Player? My script looks like this:
In this script he injects the video link into the flash player, I would like to replace this with an HTML5 of the type <video class="" width="100%" controls preload="auto" autoplay poster="" src=" "></video>
<script type="text/javascript">
// Which flash versions are needed for given format
var FLASH_VERSIONS = {
'7/0/0': [5],
'9/0/115': [18, 22, 33, 34, 35, 37, 38, 59, 78, 82, 83, 84, 85, 120, 121],
}
var ts = Math.round((new Date()).getTime() / 1000);
</script>
I recommend using the videojs.
– Bruno Wego