This commit is contained in:
yumoqing 2024-08-21 11:06:16 +08:00
parent bc0dbe0340
commit cf2513960d

View File

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