fix config usage

This commit is contained in:
Joshua Sangmeister 2020-11-26 10:37:45 +01:00
parent 26ac618ddf
commit fca688a1f7
2 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,6 @@
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { Injectable } from '@angular/core';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { TranslateService } from '@ngx-translate/core';
import { OverlayService } from './overlay.service';

View File

@ -187,8 +187,8 @@ export class JitsiComponent extends BaseViewComponentDirective implements OnInit
startAudioOnly: false,
// allows jitsi on mobile devices
disableDeepLinking: true,
startWithAudioMuted: this.startWithMicMuted,
startWithVideoMuted: this.startWithVideoMuted,
startWithAudioMuted: false,
startWithVideoMuted: false,
useNicks: true,
enableWelcomePage: false,
enableUserRolesBasedOnToken: false,
@ -345,12 +345,14 @@ export class JitsiComponent extends BaseViewComponentDirective implements OnInit
this.videoStreamUrl = url;
this.configsLoaded.resolve();
}),
this.configService.get<boolean>('general_system_conference_open_microphon').subscribe(open => {
this.configService.get<boolean>('general_system_conference_open_microphone').subscribe(open => {
this.startWithMicMuted = !open;
this.configOverwrite.startWithAudioMuted = this.startWithMicMuted;
console.log('this.startWithMicMuted ', this.startWithMicMuted);
}),
this.configService.get<boolean>('general_system_conference_open_video').subscribe(open => {
this.startWithVideoMuted = !open;
this.configOverwrite.startWithVideoMuted = this.startWithVideoMuted;
console.log('this.startWithVideoMuted ', this.startWithVideoMuted);
})
);