This commit is contained in:
yumoqing 2024-10-11 13:28:17 +08:00
parent 1b4d371ce8
commit 159bf579c8

View File

@ -262,7 +262,7 @@ bricks.RTCP2PConnect = class {
} }
async send_offer(peer){ async send_offer(peer){
console.log('send_offer(), peers=', this.peers, 'peer=', peer); console.log('send_offer(), peers=', this.peers, 'peer=', peer);
pc = this.peers[peer.id].pc; var pc = this.peers[peer.id].pc;
var offer = await pc.createOffer(); var offer = await pc.createOffer();
await pc.setLocalDescription(offer); await pc.setLocalDescription(offer);
var d = { var d = {