Explorar el Código

fix(audio-share): Show button only when supported by browser.

Show the audio share button only when its supported. For example, mobile browsers do not support getDisplayMedia yet.
j8
Jaya Allamsetty hace 4 años
padre
commit
477d94497b
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4
    1
      react/features/toolbox/components/web/Toolbox.js

+ 4
- 1
react/features/toolbox/components/web/Toolbox.js Ver fichero

972
      */
972
      */
973
     _renderOverflowMenuContent(additionalButtons: Array<React$Element<any>>) {
973
     _renderOverflowMenuContent(additionalButtons: Array<React$Element<any>>) {
974
         const {
974
         const {
975
+            _desktopSharingEnabled,
975
             _feedbackConfigured,
976
             _feedbackConfigured,
976
             _fullScreen,
977
             _fullScreen,
977
             _isMobile,
978
             _isMobile,
1036
                 && <SharedVideoButton
1037
                 && <SharedVideoButton
1037
                     key = 'sharedvideo'
1038
                     key = 'sharedvideo'
1038
                     showLabel = { true } />,
1039
                     showLabel = { true } />,
1039
-            this._shouldShowButton('shareaudio') && isScreenAudioSupported()
1040
+            this._shouldShowButton('shareaudio')
1041
+                && _desktopSharingEnabled
1042
+                && isScreenAudioSupported()
1040
                 && <OverflowMenuItem
1043
                 && <OverflowMenuItem
1041
                     accessibilityLabel = { t('toolbar.accessibilityLabel.shareaudio') }
1044
                     accessibilityLabel = { t('toolbar.accessibilityLabel.shareaudio') }
1042
                     icon = { IconShareAudio }
1045
                     icon = { IconShareAudio }

Loading…
Cancelar
Guardar