bugfix
This commit is contained in:
parent
58be2217eb
commit
1b4d371ce8
@ -261,6 +261,7 @@ bricks.RTCP2PConnect = class {
|
||||
pc.close();
|
||||
}
|
||||
async send_offer(peer){
|
||||
console.log('send_offer(), peers=', this.peers, 'peer=', peer);
|
||||
pc = this.peers[peer.id].pc;
|
||||
var offer = await pc.createOffer();
|
||||
await pc.setLocalDescription(offer);
|
||||
@ -362,7 +363,7 @@ bricks.RTCP2PConnect = class {
|
||||
pc.addTrack(track, this.local_stream);
|
||||
});
|
||||
}
|
||||
this.peers[peer.id] = peer;
|
||||
this.peers[peer.id] = bricks.extend({}, peer);
|
||||
this.peers[peer.id].pc = pc;
|
||||
var remoteVideo = new bricks.VideoBox();
|
||||
this.peers[peer.id].video = remoteVideo;
|
||||
|
Loading…
Reference in New Issue
Block a user