HTML5 Video and HTML5 Boilerplate -
i'm trying implement videojs in html5 boilerplate. i've tried pasting embed code suggested videojs results don't work. when page loads "poster" image appears loading wheel never stops , video never plays.
i've tried including in header , footer video started, hasn't worked:
<script> window.onload = function() { var pelement = document.getelementbyid("#vid"); pelement.play(); }; </script>
i've included video.js ref links in header:
<!-- link video js library --> <script src="js/mylibs/video.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="css/video-js.css" type="text/css" media="screen" title="video js" charset="utf-8"> <script type="text/javascript" charset="utf-8"> // add videojs video tags on page when dom ready videojs.setupallwhenready(); </script>
does have example of html5 video implementation html5 boilerplate template. admittedly i'm noob apologize if question seems kind of daft.
thanks help!
you should not including them in <head> , footer. should include script pasted @ beginning @ bottom after video.js ref links set of scripts.
you can paste code @ http://jsfiddle.net , ask again can fixed more quickly.
Comments
Post a Comment