Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(ios): adds ios screensharing enabled flag
tmoldovan8x8e803e8cfd9f8
diff --git a/ios/app/src/AppDelegate.m b/ios/app/src/AppDelegate.mindex 00707dc9f9..76afe2afb8 100644--- a/ios/app/src/AppDelegate.m+++ b/ios/app/src/AppDelegate.m@@ -35,6 +35,7 @@jitsiMeet.defaultConferenceOptions = [JitsiMeetConferenceOptions fromBuilder:^(JitsiMeetConferenceOptionsBuilder *builder) {[builder setFeatureFlag:@"resolution" withValue:@(360)];+ [builder setFeatureFlag:@"ios.screensharing.enabled" withBoolean:YES];builder.serverURL = [NSURL URLWithString:@"https://meet.jit.si"];builder.welcomePageEnabled = YES;diff --git a/react/features/base/flags/constants.js b/react/features/base/flags/constants.jsindex 0407fcda1d..f3acc2be1a 100644--- a/react/features/base/flags/constants.js+++ b/react/features/base/flags/constants.js@@ -86,6 +86,12 @@ export const INVITE_ENABLED = 'invite.enabled';*/export const IOS_RECORDING_ENABLED = 'ios.recording.enabled';+/**+ * Flag indicating if screen sharing should be enabled in iOS.+ * Default: disabled (false).+ */+export const IOS_SCREENSHARING_ENABLED = 'ios.screensharing.enabled';+/*** Flag indicating if kickout is enabled.* Default: enabled (true).diff --git a/react/features/toolbox/components/native/ScreenSharingIosButton.js b/react/features/toolbox/components/native/ScreenSharingIosButton.jsindex 453c4f746c..0eb9734d97 100644--- a/react/features/toolbox/components/native/ScreenSharingIosButton.js+++ b/react/features/toolbox/components/native/ScreenSharingIosButton.js@@ -4,6 +4,7 @@ import React from 'react';import { findNodeHandle, NativeModules, Platform } from 'react-native';import { ScreenCapturePickerView } from 'react-native-webrtc';+import { getFeatureFlag, IOS_SCREENSHARING_ENABLED } from '../../../base/flags';import { translate } from '../../../base/i18n';import { IconShareDesktop } from '../../../base/icons';import { connect } from '../../../base/redux';@@ -121,11 +122,13 @@ class ScreenSharingIosButton extends AbstractButton<Props, *> {* }}*/function _mapStateToProps(state): Object {+ const enabled = getFeatureFlag(state, IOS_SCREENSHARING_ENABLED, false);+return {_screensharing: isLocalVideoTrackDesktop(state),// TODO: this should work on iOS 12 too, but our trick to show the picker doesn't work.- visible: Platform.OS === 'ios' && Platform.Version.split('.')[0] >= 14+ visible: enabled && Platform.OS === 'ios' && Platform.Version.split('.')[0] >= 14};}