Sfoglia il codice sorgente

[RN] Disable camera switch button when video is muted

j8
Saúl Ibarra Corretgé 8 anni fa
parent
commit
ffc12ccc0e
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5
    2
      react/features/toolbox/components/Toolbox.native.js

+ 5
- 2
react/features/toolbox/components/Toolbox.native.js Vedi File

@@ -194,14 +194,17 @@ class Toolbox extends Component {
194 194
         const iconStyle = styles.secondaryToolbarButtonIcon;
195 195
         const style = styles.secondaryToolbarButton;
196 196
         const underlayColor = 'transparent';
197
-        const { _audioOnly: audioOnly } = this.props;
197
+        const {
198
+            _audioOnly: audioOnly,
199
+            _videoMuted: videoMuted
200
+        } = this.props;
198 201
 
199 202
         /* eslint-disable react/jsx-curly-spacing,react/jsx-handler-names */
200 203
 
201 204
         return (
202 205
             <View style = { styles.secondaryToolbar }>
203 206
                 <ToolbarButton
204
-                    disabled = { audioOnly }
207
+                    disabled = { audioOnly || videoMuted }
205 208
                     iconName = 'switch-camera'
206 209
                     iconStyle = { iconStyle }
207 210
                     onClick = { this.props._onToggleCameraFacingMode }

Loading…
Annulla
Salva