Created
January 30, 2012 05:59
-
-
Save davidbanham/1702828 to your computer and use it in GitHub Desktop.
VideoJS API ready call failing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Video.js | HTML5 Video Player</title> | |
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet" type="text/css"> | |
<!-- video.js must be in the <head> for older IEs to work. --> | |
<script src="http://vjs.zencdn.net/c/video.js"></script> | |
<script type="text/javascript"> | |
_V_("example_video_1").ready(function(){ | |
var myPlayer = this; | |
// EXAMPLE: Start playing the video. | |
myPlayer.play(); | |
}); | |
</script> | |
</head> | |
<body> | |
<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264" | |
poster="http://video-js.zencoder.com/oceans-clip.png" | |
data-setup="{}"> | |
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' /> | |
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' /> | |
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' /> | |
</video> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment