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({