openvidu-components: Allow mute forcibly only for camera streams

pull/828/head
Carlos Santos 2023-10-17 11:26:31 +02:00
parent 1fb201375e
commit c8ff947a4f
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@
<span *ngIf="videoSizeIcon === videoSizeIconEnum.NORMAL">{{ 'STREAM.ZOOM_OUT' | translate }}</span>
<span *ngIf="videoSizeIcon === videoSizeIconEnum.BIG">{{ 'STREAM.ZOOM_IN' | translate }}</span>
</button>
<button mat-menu-item id="sound-btn" *ngIf="!this._stream.participant.local" (click)="toggleMuteForcibly()">
<button mat-menu-item id="sound-btn" *ngIf="!this._stream.participant.local && this._stream.type === videoTypeEnum.CAMERA" (click)="toggleMuteForcibly()">
<mat-icon *ngIf="!_stream.participant.isMutedForcibly">volume_up</mat-icon>
<span *ngIf="!_stream.participant.isMutedForcibly">{{ 'STREAM.MUTE_SOUND' | translate }}</span>