This commit is contained in:
2023-10-04 10:28:26 +08:00
parent 4f57a19ef6
commit 11a402009b
1 changed files with 1 additions and 0 deletions

View File

@ -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++
}