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

View File

@ -289,10 +289,11 @@ bricks.RTCP2PConnect = class {
async recvdata_handler(data){ async recvdata_handler(data){
console.log('recvdata=', data); console.log('recvdata=', data);
var f = this.get_handler(data.type); var f = this.signal_handlers[data.type];
if (f) { if (f) {
await f(data); await f(data);
} }
console.log('recvdata=', data, 'NOT HANDLED');
} }
async ice_statechange(peer, event){ async ice_statechange(peer, event){