diff --git a/plugins/webrtc/src/ffmpeg-to-wrtc.ts b/plugins/webrtc/src/ffmpeg-to-wrtc.ts index 0bb8c9ec2..5ec124b2f 100644 --- a/plugins/webrtc/src/ffmpeg-to-wrtc.ts +++ b/plugins/webrtc/src/ffmpeg-to-wrtc.ts @@ -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');