From 2c748b029b7d076d3289f209c82a55ca8c5d893a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Tue, 24 Oct 2023 08:21:15 +0800 Subject: [PATCH] =?UTF-8?q?DEBUG:=20=E7=94=A8=E6=88=B7=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E7=A6=BB=E5=BC=80=E9=81=BF=E5=85=8D=E5=BD=B1=E5=93=8D=E9=9F=B3?= =?UTF-8?q?=E4=B9=90=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 266 ---------------------------------------------- src/music.js | 2 +- 2 files changed, 1 insertion(+), 267 deletions(-) delete mode 100644 public/index.html diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 08270f8..0000000 --- a/public/index.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - webRTC - - - -
-

webRTC

-

选择音乐使频道内所有设备同步播放 chrome://webrtc-internals/

-
- - - - \ No newline at end of file diff --git a/src/music.js b/src/music.js index c75f685..bd82e47 100644 --- a/src/music.js +++ b/src/music.js @@ -304,7 +304,7 @@ export default class MusicList { } async remove(item) { this.ul.querySelector(`#${item.id}`)?.remove() - if (!this.audio.paused) this.stop() // 停止播放 + if (!this.audio.paused && item.id === this.playing?.id) this.stop() // 停止播放 this.list = this.list.filter(i => i.id !== item.id) this.event.onremove(item) }