From 390ca510dc9f5f02475d249ad1a4bbeb7ae1a74e Mon Sep 17 00:00:00 2001 From: iotcat Date: Wed, 15 Jan 2020 20:32:09 +0000 Subject: [PATCH] auto swi qua --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e3c0c3f..81cab92 100644 --- a/index.html +++ b/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;