I implement video games and work in all browsers, however the controls are not visible, and the play button in IE8 is broken with Flash turned off.
After some digging, I made sure to use the latest versions of js and css, citing cdn.
Found a link to "boxWidth = box.offsetWidth", but I believe that this has been fixed since version 3.2.
The code is as follows and served through an iframe in colorbox.js
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <link href="http://vjs.zencdn.net/4.0/video-js.css" rel="stylesheet"> <script src="http://vjs.zencdn.net/4.0/video.js"></script> </head> <body> <?php if (!empty($this->user) && $this->access === true) { ?> <div id="player" class="" style=""> <video id="video-player" class="video-js vjs-default-skin" controls autoplay width="640" height="480" datasetup="{}"> <source src="[VIDEOURL].mp4" type="video/mp4" /> <source src="[VIDEOURL].ogg" type="video/ogg" /> </video> </div> <?php } ?> <script> var player = videojs("video-player"); _V_.options.flash.swf = "[FLASHURL].swf"; </script> </body>
source share