openvidu-components: Fixed background directive

pull/722/head
csantosm 2022-04-29 12:46:51 +02:00
parent bad018a10e
commit 117e6647a9
5 changed files with 3 additions and 10 deletions

View File

@ -13,7 +13,7 @@
<ov-layout>
<ng-template #stream let-stream>
<button
*ngIf="!isMinimal && !isOpenViduCE && showBackgroundEffectsButton"
*ngIf="!isMinimal && showBackgroundEffectsButton"
mat-icon-button
id="background-effects-btn"
(click)="toggleBackgroundEffects()"

View File

@ -43,7 +43,6 @@ export class PreJoinComponent implements OnInit, OnDestroy {
hasAudioDevices: boolean;
isLoading = true;
nickname: string;
isOpenViduCE: boolean;
/**
* @ignore
*/
@ -81,7 +80,6 @@ export class PreJoinComponent implements OnInit, OnDestroy {
ngOnInit() {
this.subscribeToPrejoinDirectives();
this.subscribeToLocalParticipantEvents();
this.isOpenViduCE = this.openviduService.isOpenViduCE();
this.windowSize = window.innerWidth;
this.hasVideoDevices = this.deviceSrv.hasVideoDeviceAvailable();

View File

@ -65,7 +65,7 @@
<button
mat-icon-button
id="more-options-btn"
*ngIf="!isMinimal && !isOpenViduCE && showBackgroundEffectsButton"
*ngIf="!isMinimal && showBackgroundEffectsButton"
[matMenuTriggerFor]="menu"
[disabled]="isConnectionLost"
>

View File

@ -283,11 +283,6 @@ export class ToolbarComponent implements OnInit, OnDestroy {
*/
isRecording: boolean = false;
/**
* @ignore
*/
isOpenViduCE: boolean;
private log: ILogger;
private minimalSub: Subscription;
private panelTogglingSubscription: Subscription;
@ -357,7 +352,6 @@ export class ToolbarComponent implements OnInit, OnDestroy {
await this.oVDevicesService.initializeDevices();
this.hasVideoDevices = this.oVDevicesService.hasVideoDeviceAvailable();
this.hasAudioDevices = this.oVDevicesService.hasAudioDeviceAvailable();
this.isOpenViduCE = this.openviduService.isOpenViduCE();
this.session = this.openviduService.getWebcamSession();
this.subscribeToUserMediaProperties();

View File

@ -269,6 +269,7 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni
this.openviduService.setOpenViduEdition(OpenViduEdition.PRO);
} else {
this.openviduService.setOpenViduEdition(OpenViduEdition.CE);
this.libService.backgroundEffectsButton.next(false);
}
if (tokens.screen) {