Переглянути джерело

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 4 роки тому
джерело
коміт
477d94497b
1 змінених файлів з 4 додано та 1 видалено
  1. 4
    1
      react/features/toolbox/components/web/Toolbox.js

+ 4
- 1
react/features/toolbox/components/web/Toolbox.js Переглянути файл

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

Завантаження…
Відмінити
Зберегти