Kaynağa Gözat

feat(ios): adds ios screensharing enabled flag

master
tmoldovan8x8 4 yıl önce
ebeveyn
işleme
e803e8cfd9
No account linked to committer's email address

+ 1
- 0
ios/app/src/AppDelegate.m Dosyayı Görüntüle

@@ -35,6 +35,7 @@
35 35
 
36 36
     jitsiMeet.defaultConferenceOptions = [JitsiMeetConferenceOptions fromBuilder:^(JitsiMeetConferenceOptionsBuilder *builder) {
37 37
         [builder setFeatureFlag:@"resolution" withValue:@(360)];
38
+        [builder setFeatureFlag:@"ios.screensharing.enabled" withBoolean:YES];
38 39
         builder.serverURL = [NSURL URLWithString:@"https://meet.jit.si"];
39 40
         builder.welcomePageEnabled = YES;
40 41
 

+ 6
- 0
react/features/base/flags/constants.js Dosyayı Görüntüle

@@ -86,6 +86,12 @@ export const INVITE_ENABLED = 'invite.enabled';
86 86
  */
87 87
 export const IOS_RECORDING_ENABLED = 'ios.recording.enabled';
88 88
 
89
+/**
90
+ * Flag indicating if screen sharing should be enabled in iOS.
91
+ * Default: disabled (false).
92
+ */
93
+export const IOS_SCREENSHARING_ENABLED = 'ios.screensharing.enabled';
94
+
89 95
 /**
90 96
  * Flag indicating if kickout is enabled.
91 97
  * Default: enabled (true).

+ 4
- 1
react/features/toolbox/components/native/ScreenSharingIosButton.js Dosyayı Görüntüle

@@ -4,6 +4,7 @@ import React from 'react';
4 4
 import { findNodeHandle, NativeModules, Platform } from 'react-native';
5 5
 import { ScreenCapturePickerView } from 'react-native-webrtc';
6 6
 
7
+import { getFeatureFlag, IOS_SCREENSHARING_ENABLED } from '../../../base/flags';
7 8
 import { translate } from '../../../base/i18n';
8 9
 import { IconShareDesktop } from '../../../base/icons';
9 10
 import { connect } from '../../../base/redux';
@@ -121,11 +122,13 @@ class ScreenSharingIosButton extends AbstractButton<Props, *> {
121 122
  * }}
122 123
  */
123 124
 function _mapStateToProps(state): Object {
125
+    const enabled = getFeatureFlag(state, IOS_SCREENSHARING_ENABLED, false);
126
+
124 127
     return {
125 128
         _screensharing: isLocalVideoTrackDesktop(state),
126 129
 
127 130
         // TODO: this should work on iOS 12 too, but our trick to show the picker doesn't work.
128
-        visible: Platform.OS === 'ios' && Platform.Version.split('.')[0] >= 14
131
+        visible: enabled && Platform.OS === 'ios' && Platform.Version.split('.')[0] >= 14
129 132
     };
130 133
 }
131 134
 

Loading…
İptal
Kaydet