mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Fixed background directive
parent
bad018a10e
commit
117e6647a9
|
@ -13,7 +13,7 @@
|
||||||
<ov-layout>
|
<ov-layout>
|
||||||
<ng-template #stream let-stream>
|
<ng-template #stream let-stream>
|
||||||
<button
|
<button
|
||||||
*ngIf="!isMinimal && !isOpenViduCE && showBackgroundEffectsButton"
|
*ngIf="!isMinimal && showBackgroundEffectsButton"
|
||||||
mat-icon-button
|
mat-icon-button
|
||||||
id="background-effects-btn"
|
id="background-effects-btn"
|
||||||
(click)="toggleBackgroundEffects()"
|
(click)="toggleBackgroundEffects()"
|
||||||
|
|
|
@ -43,7 +43,6 @@ export class PreJoinComponent implements OnInit, OnDestroy {
|
||||||
hasAudioDevices: boolean;
|
hasAudioDevices: boolean;
|
||||||
isLoading = true;
|
isLoading = true;
|
||||||
nickname: string;
|
nickname: string;
|
||||||
isOpenViduCE: boolean;
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
|
@ -81,7 +80,6 @@ export class PreJoinComponent implements OnInit, OnDestroy {
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.subscribeToPrejoinDirectives();
|
this.subscribeToPrejoinDirectives();
|
||||||
this.subscribeToLocalParticipantEvents();
|
this.subscribeToLocalParticipantEvents();
|
||||||
this.isOpenViduCE = this.openviduService.isOpenViduCE();
|
|
||||||
|
|
||||||
this.windowSize = window.innerWidth;
|
this.windowSize = window.innerWidth;
|
||||||
this.hasVideoDevices = this.deviceSrv.hasVideoDeviceAvailable();
|
this.hasVideoDevices = this.deviceSrv.hasVideoDeviceAvailable();
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
<button
|
<button
|
||||||
mat-icon-button
|
mat-icon-button
|
||||||
id="more-options-btn"
|
id="more-options-btn"
|
||||||
*ngIf="!isMinimal && !isOpenViduCE && showBackgroundEffectsButton"
|
*ngIf="!isMinimal && showBackgroundEffectsButton"
|
||||||
[matMenuTriggerFor]="menu"
|
[matMenuTriggerFor]="menu"
|
||||||
[disabled]="isConnectionLost"
|
[disabled]="isConnectionLost"
|
||||||
>
|
>
|
||||||
|
|
|
@ -283,11 +283,6 @@ export class ToolbarComponent implements OnInit, OnDestroy {
|
||||||
*/
|
*/
|
||||||
isRecording: boolean = false;
|
isRecording: boolean = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* @ignore
|
|
||||||
*/
|
|
||||||
isOpenViduCE: boolean;
|
|
||||||
|
|
||||||
private log: ILogger;
|
private log: ILogger;
|
||||||
private minimalSub: Subscription;
|
private minimalSub: Subscription;
|
||||||
private panelTogglingSubscription: Subscription;
|
private panelTogglingSubscription: Subscription;
|
||||||
|
@ -357,7 +352,6 @@ export class ToolbarComponent implements OnInit, OnDestroy {
|
||||||
await this.oVDevicesService.initializeDevices();
|
await this.oVDevicesService.initializeDevices();
|
||||||
this.hasVideoDevices = this.oVDevicesService.hasVideoDeviceAvailable();
|
this.hasVideoDevices = this.oVDevicesService.hasVideoDeviceAvailable();
|
||||||
this.hasAudioDevices = this.oVDevicesService.hasAudioDeviceAvailable();
|
this.hasAudioDevices = this.oVDevicesService.hasAudioDeviceAvailable();
|
||||||
this.isOpenViduCE = this.openviduService.isOpenViduCE();
|
|
||||||
this.session = this.openviduService.getWebcamSession();
|
this.session = this.openviduService.getWebcamSession();
|
||||||
|
|
||||||
this.subscribeToUserMediaProperties();
|
this.subscribeToUserMediaProperties();
|
||||||
|
|
|
@ -269,6 +269,7 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni
|
||||||
this.openviduService.setOpenViduEdition(OpenViduEdition.PRO);
|
this.openviduService.setOpenViduEdition(OpenViduEdition.PRO);
|
||||||
} else {
|
} else {
|
||||||
this.openviduService.setOpenViduEdition(OpenViduEdition.CE);
|
this.openviduService.setOpenViduEdition(OpenViduEdition.CE);
|
||||||
|
this.libService.backgroundEffectsButton.next(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tokens.screen) {
|
if (tokens.screen) {
|
||||||
|
|
Loading…
Reference in New Issue