auto swi qua

master
iotcat 4 years ago
parent 9a5901f31b
commit 390ca510dc
  1. 4
      index.html

@ -86,12 +86,12 @@
dp.on('waiting', function(){
isWaiting = true;
setTimeout(function(){
if(isWaiting && options.video.quality.length > 1){
if(isWaiting && dp.video.currentTime > 10 && options.video.quality.length > 1){
dp.notice("监测到卡顿,切换片源");
options.video.defaultQuality = (options.video.defaultQuality >= options.video.quality.length - 1) ? 0 : options.video.defaultQuality+1;
dp.switchQuality(options.video.defaultQuality);
}
}, 8000);
}, 6000);
});
dp.on('playing', function(){
isWaiting = false;

Loading…
Cancel
Save