fix(pip) make PiP disabled by default

This reverts commit c84c3c61e2c24014b43023316627f7747bbca7a6.
This commit is contained in:
Titus Moldovan
2022-06-21 08:49:46 +03:00
committed by tmoldovan8x8
parent d1c9720033
commit b428ce2dcd
6 changed files with 20 additions and 17 deletions

View File

@@ -27,6 +27,7 @@ import { getIsLobbyVisible } from '../../../lobby/functions';
import { navigate }
from '../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
import { screen } from '../../../mobile/navigation/routes';
import { setPictureInPictureEnabled } from '../../../mobile/picture-in-picture';
import { Captions } from '../../../subtitles';
import { setToolboxVisible } from '../../../toolbox/actions';
import { Toolbox } from '../../../toolbox/components/native';
@@ -179,6 +180,7 @@ class Conference extends AbstractConference<Props, State> {
*/
componentDidMount() {
BackHandler.addEventListener('hardwareBackPress', this._onHardwareBackPress);
setPictureInPictureEnabled(true);
}
/**
@@ -211,6 +213,7 @@ class Conference extends AbstractConference<Props, State> {
BackHandler.removeEventListener('hardwareBackPress', this._onHardwareBackPress);
clearTimeout(this._expandedLabelTimeout.current);
setPictureInPictureEnabled(false);
}
/**