This commit is contained in:
yumoqing 2024-10-11 13:03:18 +08:00
parent 8e02a13d9a
commit 58be2217eb

View File

@ -363,9 +363,9 @@ bricks.RTCP2PConnect = class {
});
}
this.peers[peer.id] = peer;
this.peers[peer.id][pc] = pc;
this.peers[peer.id].pc = pc;
var remoteVideo = new bricks.VideoBox();
this.peers[peer.id][video] = remoteVideo;
this.peers[peer.id].video = remoteVideo;
pc.onicecandidate = this.send_candidate.bind(this, peer);
pc.oniceconnectionstatechange = this.ice_statechange.bind(this, peer);
pc.onconnectionstatechange = this.connection_statechange.bind(this, peer);