From bc44dddf86decfba430ea94f93782d37647d10dd Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 11 Oct 2024 12:00:32 +0800 Subject: [PATCH] bugfix --- bricks/rtc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bricks/rtc.js b/bricks/rtc.js index c2ee3ff..a61fa60 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -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);