mirror of
https://github.com/videojs/video.js.git
synced 2025-07-03 00:57:02 +02:00
Removed video box in demo because adding it dynamically now.
Switche to window.onload instead of bodyLoaded function.
This commit is contained in:
@ -11,16 +11,15 @@
|
|||||||
// VideoJS.setup();
|
// VideoJS.setup();
|
||||||
// })
|
// })
|
||||||
|
|
||||||
var bodyLoaded = function(){
|
window.onload = function(){
|
||||||
VideoJS.setup();
|
VideoJS.setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<link rel="stylesheet" href="video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8">
|
<link rel="stylesheet" href="video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8">
|
||||||
</head>
|
</head>
|
||||||
<body id="body" onload="bodyLoaded()">
|
<body id="body">
|
||||||
|
|
||||||
<div class="video-box">
|
|
||||||
<!-- Using the Video for Everybody Embed Code (modified for VP8/WebM) http://camendesign.com/code/video_for_everybody -->
|
<!-- Using the Video for Everybody Embed Code (modified for VP8/WebM) http://camendesign.com/code/video_for_everybody -->
|
||||||
<video id="video" class="video-js" width="640" height="264" poster="http://video-js.s3.amazonaws.com/oceans-clip.png" autobuffer>
|
<video id="video" class="video-js" width="640" height="264" poster="http://video-js.s3.amazonaws.com/oceans-clip.png" autobuffer>
|
||||||
<source src="http://video-js.s3.amazonaws.com/oceans-clip.mp4" type="video/mp4">
|
<source src="http://video-js.s3.amazonaws.com/oceans-clip.mp4" type="video/mp4">
|
||||||
@ -34,7 +33,6 @@
|
|||||||
<img src="http://video-js.s3.amazonaws.com/oceans-clip.png" width="640" height="264" alt="Poster Image" title="No video playback capabilities." />
|
<img src="http://video-js.s3.amazonaws.com/oceans-clip.png" width="640" height="264" alt="Poster Image" title="No video playback capabilities." />
|
||||||
</object>
|
</object>
|
||||||
</video>
|
</video>
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Reference in New Issue
Block a user