1
视频停止几圈后,我更新Chrome浏览器之前,这个bug并不存在。几圈后视频停止
var Video = document.getElementById('video');
$('#video').hide();
if (typeof Video.loop == 'boolean') {
Video.loop = true;
} else {
Video.bind('ended', function() {
this.currentTime = 0;
this.play();
console.log("ended");
}, false);
}
如果我删除此代码并运行此:
Video.bind('ended', function() {
this.currentTime = 0;
this.play();
console.log("ended");
}, false);
我可以看到15倍“结束”在我的JS控制台,没有以后的事情和视频停止。 Chrome版本27.0.1453.116米在Windows 7旗舰版
被编辑: 此问题只出现在.mp4中.ogg autoloop正常工作。
感谢您的回答,但不幸的是这并没有解决问题。我认为最新的Chrome更新会导致此问题,但我不知道为什么以及如何找到解决方法。 – user2504245
可能与Chromium中的这个最近的错误有关(也许您应该添加注释以帮助它们重现该主题):http://code.google.com/p/chromium/issues/detail?id=255369 –