From 5f22072f7169019f2f1a9453d4becd97b36243e3 Mon Sep 17 00:00:00 2001 From: csantosm <4a.santos@gmail.com> Date: Mon, 28 Feb 2022 13:06:39 +0100 Subject: [PATCH] openvidu-components: Force mute participant from participants panel --- .../participant-panel-item.component.css | 8 ++++++++ .../participant-panel-item.component.html | 7 ++++++- .../participant-panel-item.component.ts | 4 ++++ .../src/lib/components/stream/stream.component.html | 12 ++++++------ .../src/lib/components/stream/stream.component.ts | 4 ++-- .../src/lib/models/participant.model.ts | 6 ++++++ 6 files changed, 32 insertions(+), 9 deletions(-) diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.css b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.css index 4391e21a..ae5f341e 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.css +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.css @@ -23,3 +23,11 @@ mat-list { display: contents; } +#action-btn { + border-radius: var(--ov-buttons-radius); +} + +.warn-btn { + /* background-color: var(--ov-warn-color) !important; */ + color: var(--ov-warn-color); +} diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.html index fdba655f..ebc2e54c 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.html +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.html @@ -6,5 +6,10 @@ + + - \ No newline at end of file + diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.ts index edd0b7ef..dcea75f2 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.ts @@ -15,4 +15,8 @@ export class ParticipantPanelItemComponent { _participant: ParticipantAbstractModel; constructor() {} + toggleMuteForcibly() { + this._participant.setMutedForcibly(!this._participant.isMutedForcibly); + } + } diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/stream/stream.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/stream/stream.component.html index 7e1bab4f..6fb61964 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/stream/stream.component.html +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/stream/stream.component.html @@ -36,7 +36,7 @@ @@ -59,12 +59,12 @@ Zoom out Zoom in -