videoJs利用的是官网实例 但是在chrome可以播放但是快进后就会报错(但是在firefox 和ie 里都没有问题)
video.js:18841 VIDEOJS: ERROR: (CODE:2 MEDIA_ERR_NETWORK) A network error caused the media download to fail part-way.
代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>视频播放</title>
<link href="http://vjs.zencdn.net/5.12.6/video-js.css" rel="stylesheet">
<!-- If you'd like to support IE8 -->
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script>
</head>
<body>
<video id="my-video" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" width="640" height="264"
poster="images/peek.jpeg" data-setup="{}">
<source src="video/368.mp4" type='video/mp4'>
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>
<script src="http://vjs.zencdn.net/5.12.6/video.js"></script>
<script>
var options = {
};
var player = videojs('my-video', options, function onPlayerReady() {
videojs.log('Your player is ready!');
this.play();
this.on('ended', function() {
videojs.log('Awww...over so soon?!');
});
});
</script>
</body>
</html>
我也遇到这个问题,请问您解决了没有啊? 也是在火狐上能正常播放,但是谷歌上却报错。