1
我已添加此点击功能来更改点击视频进度条时的时间。HTML5视频进度洗刷点击功能不能在镀铬
这工作在Chrome中,直到我设计了进度条 - 现在它只能在Firefox中使用。因此,缓冲区栏不会在Firefox中填充。
http://nathanworking.github.io/html-video-page/
// Update video based on click
function seek(e) {
var percent = e.offsetX/this.offsetWidth;
video.currentTime = percent * video.duration;
progress.value = percent/100;
// Update the button icon to 'Pause'
playButton.className = "pause-button";
}
progress.addEventListener("click", seek);
是否有更新此另一种方法?
太棒了,非常感谢! – nathananderson