Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(localFlipX) Fix localFlipX for large video (#13728)

Horatiu Muresana47cb595db7f
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index d8c674269f..a54b2404d3 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -23,11 +23,8 @@ const VideoLayout = {
/**
* Handler for local flip X changed event.
*/
- onLocalFlipXChanged() {
+ onLocalFlipXChanged(localFlipX) {
if (largeVideo) {
- const { store } = APP;
- const { localFlipX } = store.getState()['features/base/settings'];
-
largeVideo.onLocalFlipXChange(localFlipX);
}
},
diff --git a/react/features/filmstrip/middleware.web.ts b/react/features/filmstrip/middleware.web.ts
index 98fbb494c7..a7c514d66e 100644
--- a/react/features/filmstrip/middleware.web.ts
+++ b/react/features/filmstrip/middleware.web.ts
@@ -120,7 +120,7 @@ MiddlewareRegistry.register(store => next => action => {
case SETTINGS_UPDATED: {
if (typeof action.settings?.localFlipX === 'boolean') {
// TODO: This needs to be removed once the large video is Reactified.
- VideoLayout.onLocalFlipXChanged();
+ VideoLayout.onLocalFlipXChanged(action.settings.localFlipX);
}
if (action.settings?.disableSelfView) {
const state = store.getState();