- 点击键盘F12键,进入开发者模式
- 发现标志,html5播放器,属于原生支持最方便实现加速的
- 在开发者模式中找到Console 调式窗口,输入以下代码 可以设置视频播放速度
/* play video twice as fast */
document.querySelector('video').defaultPlaybackRate = 1.0;//默认一倍速播放
document.querySelector('video').play();
/* now play three times as fast just for the heck of it */
document.querySelector('video').playbackRate = 10.0; //修改此值设置当前的播放倍数
直接跳过视频:
function skip() {
let video = document.getElementsByTagName('video')
for (let i=0; i<video.length; i++) {
video[i].currentTime = video[i].duration
}
}
setInterval(skip,200)