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

Handling fake audio tag play exception, reduced timeout to match sound length...

Handling fake audio tag play exception, reduced timeout to match sound length and removed permission fallback from audio
parent dcdfb98c
No related branches found
No related tags found
No related merge requests found
......@@ -158,8 +158,7 @@ class AudioManager {
.catch((err) => {
// If theres a iceGathering timeout we retry to join after asking device permissions
if (err === iceGatheringErr) {
return this.askDevicesPermissions()
.then(() => this.joinListenOnly());
this.joinListenOnly();
}
throw err;
......@@ -369,8 +368,8 @@ class AudioManager {
// Hack within the hack: haven't got time to get the right timing to play
// the audio on stock listen only, but I'll get back to it - prlanzarin
this.fakeAudioInterval = setInterval(() => {
sound.play();
}, 1000);
sound.play().catch(e => { return; });
}, 800);
}
}
......
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