Skip to content
Snippets Groups Projects
Commit b4052f70 authored by prlanzarin's avatar prlanzarin
Browse files

Resolving listen only stream correctly

parent be631310
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