From 11a402009bbe8b50ec9e4f2fe1f3b27c9cce952e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Wed, 4 Oct 2023 10:28:26 +0800 Subject: [PATCH] DEBUG --- public/music.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/music.js b/public/music.js index f84e0ae..236492a 100644 --- a/public/music.js +++ b/public/music.js @@ -176,6 +176,7 @@ export default class MusicList { await new Promise(resolve => setTimeout(resolve, 100)) } const chunk = item.arrayBufferChunks[index] // 顺序取出一个arrayBuffer分片 + if (this.audio.paused) break // 播放停止则退出 sourceBuffer.appendBuffer(chunk) // 添加到sourceBuffer index++ }