bugfix
This commit is contained in:
parent
00b8aac240
commit
05733669e9
@ -116,7 +116,9 @@ bricks.Signaling = class {
|
|||||||
peers[k] = this.peers[k];
|
peers[k] = this.peers[k];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
console.log('recv data=', data, 'NOT HANDLED');
|
||||||
}
|
}
|
||||||
new_session(sessiontype, peer){
|
new_session(sessiontype, peer){
|
||||||
var k = this.sessionhandlers[sessiontype];
|
var k = this.sessionhandlers[sessiontype];
|
||||||
@ -235,6 +237,7 @@ bricks.RTCP2PConnect = class {
|
|||||||
await this.send_offer(data.msgfrom);
|
await this.send_offer(data.msgfrom);
|
||||||
}
|
}
|
||||||
async h_offer(data){
|
async h_offer(data){
|
||||||
|
console.log('send_offer(), peers=', this.peers, 'peer=', data.msgfrom);
|
||||||
var pc = this.peers[data.msgfrom.id].pc;
|
var pc = this.peers[data.msgfrom.id].pc;
|
||||||
var offer = new RTCSessionDescription(data.offer);
|
var offer = new RTCSessionDescription(data.offer);
|
||||||
await pc.setRemoteDescription(offer);
|
await pc.setRemoteDescription(offer);
|
||||||
@ -294,6 +297,7 @@ bricks.RTCP2PConnect = class {
|
|||||||
var f = this.get_handler(data.type);
|
var f = this.get_handler(data.type);
|
||||||
if (f) {
|
if (f) {
|
||||||
await f(data);
|
await f(data);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
console.log('recvdata=', data, 'NOT HANDLED');
|
console.log('recvdata=', data, 'NOT HANDLED');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user