From cf2513960d6071d496d2322665d5a7c7398fde2d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 21 Aug 2024 11:06:16 +0800 Subject: [PATCH] bugfix --- bricks/rtc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricks/rtc.js b/bricks/rtc.js index 8a9cd90..92f42a7 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -139,7 +139,7 @@ bricks.RTCClient = class extends bricks.VBox { this.socket.send(JSON.stringify(d)); } async send_offer(){ - var offer = this.peerConnection.createOffer(); + var offer = await this.peerConnection.createOffer(); this.peerConnection.setLocalDescription(offer); console.log('offer =', offer, this.peerConnection.localDescription); this.socket.send(JSON.stringify({