This commit is contained in:
yumoqing 2024-10-11 16:12:40 +08:00
parent 1aae99c212
commit 74899d23c0

View File

@ -233,7 +233,7 @@ bricks.RTCP2PConnect = class {
}
}
async h_callrequest(data){
if (this.opts.auto_callaccept){
if (this.opts.auto_callaccept || true){
var d = {
type:'callaccepted',
msgto:data.msgfrom
@ -242,7 +242,6 @@ bricks.RTCP2PConnect = class {
await this.p2pconnect(data.msgfrom, 'responser');
return;
}
this.dispatch('callrequest', data.msgfrom);
}
async h_callaccepted(data){
await this.p2pconnect(data.msgfrom, 'requester');