From dfeb5b39207c8d4ea3f5f463a792693e7bb7e493 Mon Sep 17 00:00:00 2001 From: ikaros <327209194@qq.com> Date: Tue, 10 Sep 2024 22:14:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E4=BB=8E0=E5=88=B01=E7=9A=84=E6=97=B6=E5=80=99=E4=BC=9A?= =?UTF-8?q?=E9=98=BB=E5=A1=9E=EF=BC=8C=E5=8F=AA=E6=9C=89=E5=88=B02?= =?UTF-8?q?=E6=89=8D=E8=83=BD=E6=92=AD=E6=94=BE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index 222be13..dc0b6ed 100644 --- a/static/index.html +++ b/static/index.html @@ -187,7 +187,11 @@ // 非默认视频情况下,删除掉已播放完的这个视频(此处在用户异常操作队列的情况下会有bug) if (videoQueue.length == 1 && !CurVideoisSameWithDefault()) { videoQueue.shift(); - } + } + // 如果当前视频是默认视频,那说明是第一次插入,则需要进行播放 + else if (videoQueue.length == 1 && CurVideoisSameWithDefault()) { + prepareNextVideo(videoQueue[0]); + } if (!isWaitingForNextVideo) { console.log('播放默认视频');