Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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.

Jaya Allamsetty477d94497b3e
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index 1b64a221fb..ec4c49a0a1 100644
--- a/react/features/toolbox/components/web/Toolbox.js
+++ b/react/features/toolbox/components/web/Toolbox.js
@@ -972,6 +972,7 @@ class Toolbox extends Component<Props> {
*/
_renderOverflowMenuContent(additionalButtons: Array<React$Element<any>>) {
const {
+ _desktopSharingEnabled,
_feedbackConfigured,
_fullScreen,
_isMobile,
@@ -1036,7 +1037,9 @@ class Toolbox extends Component<Props> {
&& <SharedVideoButton
key = 'sharedvideo'
showLabel = { true } />,
- this._shouldShowButton('shareaudio') && isScreenAudioSupported()
+ this._shouldShowButton('shareaudio')
+ && _desktopSharingEnabled
+ && isScreenAudioSupported()
&& <OverflowMenuItem
accessibilityLabel = { t('toolbar.accessibilityLabel.shareaudio') }
icon = { IconShareAudio }