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(toolbox): enable fullscreen button on Android mobile browsers

Andrei Gavrilescu7e9d66569786
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index b4403699f9..0928bc7899 100644
--- a/react/features/toolbox/components/web/Toolbox.js
+++ b/react/features/toolbox/components/web/Toolbox.js
@@ -13,7 +13,7 @@ import {
import { getToolbarButtons } from '../../../base/config';
import { isToolbarButtonEnabled } from '../../../base/config/functions.web';
import { openDialog, toggleDialog } from '../../../base/dialog';
-import { isMobileBrowser } from '../../../base/environment/utils';
+import { isIosMobileBrowser, isMobileBrowser } from '../../../base/environment/utils';
import { translate } from '../../../base/i18n';
import JitsiMeetJS from '../../../base/lib-jitsi-meet';
import {
@@ -149,6 +149,11 @@ type Props = {
*/
_fullScreen: boolean,
+ /**
+ * Whether or not the app is running in an ios mobile browser.
+ */
+ _isIosMobile: boolean,
+
/**
* Whether or not the app is running in mobile browser.
*/
@@ -577,6 +582,7 @@ class Toolbox extends Component<Props> {
_getAllButtons() {
const {
_feedbackConfigured,
+ _isIosMobile,
_isMobile,
_screenSharing
} = this.props;
@@ -652,7 +658,7 @@ class Toolbox extends Component<Props> {
group: 2
};
- const fullscreen = !_isMobile && {
+ const fullscreen = !_isIosMobile && {
key: 'fullscreen',
Content: FullscreenButton,
handleClick: this._onToolbarToggleFullScreen,
@@ -1348,6 +1354,7 @@ function _mapStateToProps(state, ownProps) {
_feedbackConfigured: Boolean(callStatsID),
_fullScreen: fullScreen,
_isProfileDisabled: Boolean(disableProfile),
+ _isIosMobile: isIosMobileBrowser(),
_isMobile: isMobileBrowser(),
_isVpaasMeeting: isVpaasMeeting(state),
_localParticipantID: localParticipant?.id,