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 { Injectable } from '@angular/core';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { OverlayService } from './overlay.service'; import { OverlayService } from './overlay.service';

View File

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