waiting with voice bridge connection initialisation until audio playback is supported
This commit is contained in:
parent
ace25a04cc
commit
b82c243371
1 changed files with 5 additions and 0 deletions
|
@ -277,6 +277,11 @@ class VoiceConnection {
|
||||||
|
|
||||||
|
|
||||||
createSession() {
|
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.current_encoding_supported()) return false;
|
||||||
|
|
||||||
if(this.rtcPeerConnection) {
|
if(this.rtcPeerConnection) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue