From 6cd1bece7d3e0b5b58b1a845c45197cc3e025add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Wed, 4 Oct 2023 12:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=89=87=E6=97=A5=E5=BF=97=20+1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 49d930d..900c824 100644 --- a/public/index.html +++ b/public/index.html @@ -117,7 +117,7 @@ const chunkNumber = Math.ceil(item.size / 1024 / 64) // 64KB每片 clientList.setChannel(`music-data-${item.id}`, { onmessage: async (event, client) => { - console.log('收到音乐数据 chunk', `${count}/${chunkNumber}`, buffer.byteLength) + console.log('收到音乐数据 chunk', `${count+1}/${chunkNumber}`, buffer.byteLength) buffer = appendBuffer(buffer, event.data) // 合并分片准备存储 item.arrayBufferChunks.push(event.data) // 保存分片给边下边播 count++