Skip to content

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

feat(conference/native): disabled PiP on WelcomePage (#11801)

Calinteodor4a4856f3dedc
diff --git a/react/features/conference/components/native/Conference.js b/react/features/conference/components/native/Conference.js
index e7e79903a5..03c2e0499d 100644
--- a/react/features/conference/components/native/Conference.js
+++ b/react/features/conference/components/native/Conference.js
@@ -569,6 +569,9 @@ export default withSafeAreaInsets(connect(_mapStateToProps)(props => {
} else {
setPictureInPictureEnabled(false);
}
+
+ // We also need to disable PiP when we are back on the WelcomePage
+ return () => setPictureInPictureEnabled(false);
}, [ isFocused ]);
return (