diff --git a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js index f1973b0eb006e4c923b8e4ac941ef9a53860bdbe..8eea02ed7507542ff9b18db7f489e42fb34a4c73 100755 --- a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js +++ b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js @@ -181,7 +181,6 @@ class AudioManager { const callOptions = { isListenOnly: true, extension: null, - inputStream: this.createListenOnlyStream(), }; // WebRTC restrictions may need a capture device permission to release @@ -435,29 +434,6 @@ class AudioManager { }); } - createListenOnlyStream() { - const audio = document.querySelector(MEDIA_TAG); - - // Play bogus silent audio to try to circumvent autoplay policy on Safari - if (!audio.src) { - audio.src = `${Meteor.settings.public.app.cdn - + Meteor.settings.public.app.basename + Meteor.settings.public.app.instanceId}` + '/resources/sounds/silence.mp3'; - } - - audio.play().catch((e) => { - if (e.name === 'AbortError') { - return; - } - - logger.warn({ - logCode: 'audiomanager_error_test_audio', - extraInfo: { error: e }, - }, 'Error on playing test audio'); - }); - - return {}; - } - isUsingAudio() { return this.isConnected || this.isConnecting || this.isHangingUp || this.isEchoTest; diff --git a/bigbluebutton-html5/public/resources/sounds/silence.mp3 b/bigbluebutton-html5/public/resources/sounds/silence.mp3 deleted file mode 100644 index b38b60311f0e84e0182aeb1519181f8c8f8e74af..0000000000000000000000000000000000000000 Binary files a/bigbluebutton-html5/public/resources/sounds/silence.mp3 and /dev/null differ