mirror of
https://github.com/koush/scrypted.git
synced 2026-02-14 02:42:06 +00:00
webrtc: improve startup on renegotiated bundle connections
This commit is contained in:
@@ -401,7 +401,10 @@ export class WebRTCConnectionManagement implements RTCConnectionManagement {
|
||||
|
||||
this.negotiation.then(async () => {
|
||||
this.console.log('waiting ice connected');
|
||||
await waitIceConnected(this.pc);
|
||||
if (this.pc.remoteIsBundled)
|
||||
await waitConnected(this.pc);
|
||||
else
|
||||
await waitIceConnected(this.pc);
|
||||
if (ret.removed.finished)
|
||||
return;
|
||||
this.console.log('done waiting ice connected');
|
||||
|
||||
Reference in New Issue
Block a user