This commit is contained in:
yumoqing 2024-10-11 14:34:39 +08:00
parent 349247e904
commit 9895f476af

View File

@ -217,6 +217,7 @@ bricks.RTCP2PConnect = class {
aconsole.log(peer, 'connect exists', this);
}
console.log('p2pconnect() called, this=', this, 'peer=', peer);
await this.send_offer(data.msgfrom);
}
async h_sessioncreated(data){
if (this.opts.peer_info){
@ -242,7 +243,6 @@ bricks.RTCP2PConnect = class {
}
async h_callaccepted(data){
await this.p2pconnect(data.msgfrom);
await this.send_offer(data.msgfrom);
}
async h_offer(data){
console.log('h_offer(), this=', this, 'peer=', data.msgfrom);