From 488d6d9c7ccc057d5e1cd45ead930825cc28638c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Tue, 17 Oct 2023 17:00:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E7=94=A8=E6=9C=AC=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=83=8F=E5=AD=98=E5=82=A8(BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client.js | 2 +- src/main.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client.js b/src/client.js index 957e6bc..91818cf 100644 --- a/src/client.js +++ b/src/client.js @@ -65,7 +65,7 @@ export default class ClientList { ], iceCandidatePoolSize: 10, // 限制 ICE 候选者的数量 iceTransportPolicy: 'all', // 使用所有可用的候选者 - bundlePolicy: 'balanced', // 每種類型的內容建立一個單獨的傳輸 + bundlePolicy: 'max-bundle',// 将所有媒体流捆绑在一起,以最大程度地提高性能和减少延迟 }) webrtc.ondatachannel = ({ channel }) => { console.debug(data.name, '建立', channel.label, '数据通道') diff --git a/src/main.js b/src/main.js index e9a579a..a1dbf7d 100644 --- a/src/main.js +++ b/src/main.js @@ -18,9 +18,9 @@ function appendBuffer(buffer1, buffer2) { return tmp.buffer } -// 读取本地图像 -const imageStore = new IndexedDB('musicDatabase', 1, 'imageObjectStore') -await imageStore.open() +//// 读取本地图像 +//const imageStore = new IndexedDB('musicDatabase', 1, 'imageObjectStore') +//await imageStore.open() // 读取本地音乐列表并标识为缓存状态(本地缓存) const musicStore = new IndexedDB('musicDatabase', 1, 'musicObjectStore')