fix(breakout-rooms) fix no video when coming back to main room

Re-create local tracks so we have a clean state.
This commit is contained in:
Saúl Ibarra Corretgé 2021-11-30 16:10:49 +01:00 committed by Дамян Минков
parent ce35a88299
commit cc931986f6
1 changed files with 4 additions and 0 deletions

View File

@ -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();