DEBUG
This commit is contained in:
parent
3d9160a225
commit
d973619718
@ -119,7 +119,7 @@
|
|||||||
onmessage: async (event, client) => {
|
onmessage: async (event, client) => {
|
||||||
console.log('收到音乐数据 chunk', `${count + 1}/${chunkNumber}`, buffer.byteLength)
|
console.log('收到音乐数据 chunk', `${count + 1}/${chunkNumber}`, buffer.byteLength)
|
||||||
buffer = appendBuffer(buffer, event.data) // 合并分片准备存储
|
buffer = appendBuffer(buffer, event.data) // 合并分片准备存储
|
||||||
item.arrayBufferChunks.push(event.data) // 保存分片给边下边播
|
item.arrayBufferChunks?.push(event.data) // 保存分片给边下边播
|
||||||
count++
|
count++
|
||||||
if (buffer.byteLength >= item.size) {
|
if (buffer.byteLength >= item.size) {
|
||||||
console.log('音乐数据接收完毕')
|
console.log('音乐数据接收完毕')
|
||||||
|
Loading…
Reference in New Issue
Block a user