html5 - videojs javascript api breaks when setting options -
i have following javascript executes when video tag has loaded via ajax, suggested @ bottom of following link https://github.com/videojs/video.js/blob/master/docs/setup.md
<video id="video-1" style="max-width:90%; height:auto"> <source src="/link/to/video.mp4" type="video/mp4"> </video> _v_("video-1", {controls:true}, function(){});
and javascript breaks controls , render text below:
play fullscreen 0:00 0:05 -0:05 loaded: 0% progress: 0% 00:00 mute
if take out options controls below , works
_v_("video-1", {}, function(){});
i have javascript library , css in head element
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet"> <script src="http://vjs.zencdn.net/c/video.js"></script>
looks need add class video tag
<video id="video-1" class="vjs-default-skin">
Comments
Post a Comment