waiting with voice bridge connection initialisation until audio playback is supported

canary
WolverinDEV 2019-02-23 15:29:10 +01:00
parent ace25a04cc
commit b82c243371
1 changed files with 5 additions and 0 deletions

View File

@ -277,6 +277,11 @@ class VoiceConnection {
createSession() {
if(!audio.player.initialized()) {
console.log(tr("Audio player isn't initialized yet. Waiting for gesture."));
audio.player.on_ready(() => this.createSession());
return;
}
if(!this.current_encoding_supported()) return false;
if(this.rtcPeerConnection) {