feat: Skips the default tile view when jibri is loading.

Follows me and switching to tile view, still works.
This commit is contained in:
damencho 2020-11-13 12:11:30 -06:00 committed by Дамян Минков
parent 5510138944
commit d97f46c163
1 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,8 @@ export function shouldDisplayTileView(state: Object = {}) {
return tileViewEnabled;
}
const { iAmRecorder } = state['features/base/config'];
// None tile view mode is easier to calculate (no need for many negations), so we do
// that and negate it only once.
const shouldDisplayNormalMode = Boolean(
@ -107,6 +109,9 @@ export function shouldDisplayTileView(state: Object = {}) {
// There is a shared YouTube video in the meeting
|| isYoutubeVideoPlaying(state)
// We want jibri to use stage view by default
|| iAmRecorder
);
return !shouldDisplayNormalMode;