Skip to content
Snippets Groups Projects
Unverified Commit 065d932b authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #6020 from prlanzarin/autoplay-listen-only

Resolving listen only stream correctly
parents afd97601 b4052f70
No related branches found
No related tags found
No related merge requests found
......@@ -290,12 +290,11 @@ class AudioManager {
// Play bogus silent audio to try to circumvent autoplay policy on Safari
audio.src = 'resources/sounds/silence.mp3'
audio.play().then(() => {
return dest.stream;
}).catch(e => {
audio.play().catch(e => {
logger.warn('Error on playing test audio:', e);
return dest.stream;
});
return dest.stream;
}
isUsingAudio() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment