From e02f72a0f165c6a44c58936208c5ce81a689c37e Mon Sep 17 00:00:00 2001
From: csantosm <4a.santos@gmail.com>
Date: Thu, 24 Feb 2022 10:16:23 +0100
Subject: [PATCH] openvidu-components: Fixed bug with fullscreen
Listened the F11 keydown for updating the UI
---
.../components/toolbar/toolbar.component.html | 30 +++++----
.../components/toolbar/toolbar.component.ts | 62 +++++++++++++------
.../src/lib/services/device/device.service.ts | 1 -
3 files changed, 57 insertions(+), 36 deletions(-)
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/toolbar/toolbar.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/toolbar/toolbar.component.html
index bcd52178..43ac495a 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/toolbar/toolbar.component.html
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/toolbar/toolbar.component.html
@@ -11,12 +11,11 @@
id="navMicrophoneButton"
mat-icon-button
(click)="toggleMicrophone()"
- [disabled]="isConnectionLost"
- *ngIf="hasAudioDevices"
- [class.warn-btn]="!isWebcamAudioEnabled"
+ [disabled]="isConnectionLost || !hasAudioDevices"
+ [class.warn-btn]="!isWebcamAudioActive"
>
- mic
- mic_off
+ mic
+ mic_off
@@ -24,12 +23,11 @@
id="navCameraButton"
mat-icon-button
(click)="toggleCamera()"
- [disabled]="isConnectionLost"
- *ngIf="hasVideoDevices"
- [class.warn-btn]="!isWebcamVideoEnabled"
+ [disabled]="isConnectionLost || !hasVideoDevices"
+ [class.warn-btn]="!isWebcamVideoActive"
>
- videocam
- videocam_off
+ videocam
+ videocam_off
@@ -38,16 +36,16 @@
mat-icon-button
(click)="toggleScreenShare()"
[disabled]="isConnectionLost"
- [class.active-btn]="isScreenShareEnabled"
+ [class.active-btn]="isScreenShareActive"
>
- screen_share
- screen_share
+ screen_share
+ screen_share
-