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')