This commit is contained in:
yumoqing 2024-10-11 12:00:32 +08:00
parent f0b4b90edd
commit bc44dddf86

View File

@ -199,6 +199,10 @@ bricks.RTCP2PConnect = class {
add_handler(type, f){
this.signal_handlers[type] = f;
}
get_handler(type){
return this.signal_handlers[type];
}
async p2pconnect(peer){
await this.getLocalStream();
await this.createPeerConnection(peer);