From cc931986f6e3a0b213b9aec8871a215c0a00b071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 30 Nov 2021 16:10:49 +0100 Subject: [PATCH] fix(breakout-rooms) fix no video when coming back to main room Re-create local tracks so we have a clean state. --- conference.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conference.js b/conference.js index 9dd284b0a..c9db7b7e5 100644 --- a/conference.js +++ b/conference.js @@ -1334,6 +1334,10 @@ export default { VideoLayout.initLargeVideo(); VideoLayout.resizeVideoArea(); + // Destroy old tracks. + APP.store.dispatch(destroyLocalTracks()); + this._localTracksInitialized = false; + this.roomName = roomName; const { tryCreateLocalTracks, errors } = this.createInitialLocalTracks();