From ab2e3e93da4e0a1c12830587a8e6e530042a38ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Tue, 3 Oct 2023 21:11:13 +0800 Subject: [PATCH] DEBUG --- public/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/client.js b/public/client.js index b6b207f..d0cc0c1 100644 --- a/public/client.js +++ b/public/client.js @@ -116,7 +116,7 @@ export default class ClientList { //console.log('取得在线对端列表:', data) const { webrtc, channels } = await webrtc_init() //console.log('发送给对方 offer') - const offer = await webrtc.createOffer({ offerToReceiveAudio: true, offerToReceiveVideo: true }) + const offer = await webrtc.createOffer() await webrtc.setLocalDescription(offer) this.clientlist.push({ id: data.id, name: data.name, webrtc, channels }) websocket.send(JSON.stringify({ type: 'offer', id: data.id, offer }))