diff --git a/bigbluebutton-html5/imports/ui/components/actions-bar/desktop-share/component.jsx b/bigbluebutton-html5/imports/ui/components/actions-bar/desktop-share/component.jsx index 3981ee8a4a..a3cb1c2e58 100755 --- a/bigbluebutton-html5/imports/ui/components/actions-bar/desktop-share/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/actions-bar/desktop-share/component.jsx @@ -41,10 +41,10 @@ const intlMessages = defineMessages({ }); const BROWSER_RESULTS = browser(); -const isMobileBrowser = (BROWSER_RESULTS ? BROWSER_RESULTS.mobile : false) || - (BROWSER_RESULTS && BROWSER_RESULTS.os ? - BROWSER_RESULTS.os.includes('Android') : // mobile flag doesn't always work - false); +const isMobileBrowser = (BROWSER_RESULTS ? BROWSER_RESULTS.mobile : false) + || (BROWSER_RESULTS && BROWSER_RESULTS.os + ? BROWSER_RESULTS.os.includes('Android') // mobile flag doesn't always work + : false); const ICE_CONNECTION_FAILED = 'ICE connection failed'; @@ -66,23 +66,28 @@ const DesktopShare = ({ default: logger.error({ logCode: 'desktopshare_default_error' }, error || 'Default error handler'); } + + const audioAlert = new Audio(`${Meteor.settings.public.app.cdn + Meteor.settings.public.app.basename}/resources/sounds/ScreenshareOff.mp3`); + audioAlert.play(); }; - return (screenSharingCheck && !isMobileBrowser && isUserPresenter ? -