This commit is contained in:
yumoqing 2024-10-11 13:30:12 +08:00
parent 159bf579c8
commit 00b8aac240

View File

@ -240,7 +240,7 @@ bricks.RTCP2PConnect = class {
await pc.setRemoteDescription(offer); await pc.setRemoteDescription(offer);
var answer = await pc.createAnswer(); var answer = await pc.createAnswer();
await pc.setLocalDescription(answer); await pc.setLocalDescription(answer);
this.signal_send({ this.signaling_send({
type:'answer', type:'answer',
answer:pc.localDescription, answer:pc.localDescription,
msgto:data.msgfrom msgto:data.msgfrom
@ -270,7 +270,7 @@ bricks.RTCP2PConnect = class {
offer:pc.localDescription, offer:pc.localDescription,
msgto:peer msgto:peer
}; };
this.signal_send(d); this.signaling_send(d);
} }
send_candidate(peer, event){ send_candidate(peer, event){