2024-11-05 12:37:34 +01:00
|
|
|
<div class="device-container-element" [class.mute-btn]="!isCameraEnabled">
|
2024-07-02 19:19:05 +02:00
|
|
|
<mat-form-field id="video-devices-form" *ngIf="cameras.length > 0">
|
|
|
|
|
<mat-select
|
|
|
|
|
[disabled]="!hasVideoDevices"
|
|
|
|
|
[compareWith]="compareObjectDevices"
|
|
|
|
|
[value]="cameraSelected"
|
|
|
|
|
(selectionChange)="onCameraSelected($event)"
|
|
|
|
|
>
|
|
|
|
|
<mat-select-trigger id="mat-select-trigger">
|
|
|
|
|
<button
|
|
|
|
|
mat-flat-button
|
|
|
|
|
id="camera-button"
|
|
|
|
|
[disableRipple]="true"
|
|
|
|
|
[disabled]="!hasVideoDevices || cameraStatusChanging"
|
2024-11-05 12:37:34 +01:00
|
|
|
[class.mute-btn]="!isCameraEnabled"
|
2024-07-02 19:19:05 +02:00
|
|
|
(click)="toggleCam($event)"
|
|
|
|
|
[matTooltip]="isCameraEnabled ? ('TOOLBAR.STOP_VIDEO' | translate) : ('TOOLBAR.START_VIDEO' | translate)"
|
|
|
|
|
[matTooltipDisabled]="!hasVideoDevices"
|
|
|
|
|
>
|
|
|
|
|
<mat-icon *ngIf="isCameraEnabled" id="videocam"> videocam </mat-icon>
|
|
|
|
|
<mat-icon *ngIf="!isCameraEnabled" id="videocam_off"> videocam_off </mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<span class="selected-text" *ngIf="!isCameraEnabled"> {{ 'PANEL.SETTINGS.DISABLED_VIDEO' | translate }} </span>
|
|
|
|
|
<span class="selected-text" *ngIf="isCameraEnabled"> {{ cameraSelected.label }} </span>
|
|
|
|
|
</mat-select-trigger>
|
|
|
|
|
<mat-option *ngFor="let camera of cameras" [disabled]="!isCameraEnabled" [value]="camera" id="option-{{ camera.label }}">
|
|
|
|
|
{{ camera.label }}
|
|
|
|
|
</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
<div id="video-devices-form" *ngIf="cameras.length === 0">
|
|
|
|
|
<div id="mat-select-trigger">
|
2024-11-05 12:37:34 +01:00
|
|
|
<button mat-icon-button id="camera-button" class="mute-btn" [disabled]="true">
|
2024-07-02 19:19:05 +02:00
|
|
|
<mat-icon id="videocam_off"> videocam_off </mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<span id="video-devices-not-found"> {{ 'PREJOIN.NO_VIDEO_DEVICE' | translate }} </span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|