videojs 禁止快进 ,能回退
var last = 0,max_time=0;
//当目前的播放位置已更改时
vd.on('timeupdate', function(){
var current = vd.currentTime();
if(current < max_time){
console.log("进入最大值")
}else if(current - last > 2) {
vd.currentTime(last);
} else {
last = current;
if(last >= max_time){
max_time=last;
}
}
});