This commit is contained in:
yumoqing 2024-10-11 13:59:57 +08:00
parent ae79a891d7
commit 9be4c7a353

View File

@ -244,7 +244,7 @@ bricks.RTCP2PConnect = class {
await this.send_offer(data.msgfrom);
}
async h_offer(data){
console.log('h_offer(), this=', this 'peer=', data.msgfrom);
console.log('h_offer(), this=', this, 'peer=', data.msgfrom);
var pc = this.peers[data.msgfrom.id].pc;
var offer = new RTCSessionDescription(data.offer);
await pc.setRemoteDescription(offer);