我希望你能帮助我。我有一个播放和其他暂停按钮,但不起作用。谢谢。这是我的代码示例:
<!DOCTYPE html>
<html>
<head>
<title>Video.js | HTML5 Video Player</title>
<link href="http://vjs.zencdn.net/3.2/video-js.css" rel="stylesheet" type="text/css">
<script src="http://vjs.zencdn.net/3.2/video.js"></script>
<script>
_V_.options.flash.swf = "video-js.swf";
</script>
<script>
_V_("example_video_1").ready(function(){
var myPlayer = this;
});
</script>
</head>
<body>
<video id="example_video_1" class="video-js vjs-default-skin" controls preload="auto" 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>
<input type="button" value="Pause" onClick="myPlayer.pause();">
<input type="button" value="Play" onClick="myPlayer.play();">
</body>
</html>