bugfix
This commit is contained in:
parent
bc0dbe0340
commit
cf2513960d
@ -139,7 +139,7 @@ bricks.RTCClient = class extends bricks.VBox {
|
|||||||
this.socket.send(JSON.stringify(d));
|
this.socket.send(JSON.stringify(d));
|
||||||
}
|
}
|
||||||
async send_offer(){
|
async send_offer(){
|
||||||
var offer = this.peerConnection.createOffer();
|
var offer = await this.peerConnection.createOffer();
|
||||||
this.peerConnection.setLocalDescription(offer);
|
this.peerConnection.setLocalDescription(offer);
|
||||||
console.log('offer =', offer, this.peerConnection.localDescription);
|
console.log('offer =', offer, this.peerConnection.localDescription);
|
||||||
this.socket.send(JSON.stringify({
|
this.socket.send(JSON.stringify({
|
||||||
|
Loading…
Reference in New Issue
Block a user