[U] input-manager: hide selects via input parameter
This commit is contained in:
parent
d64dce0680
commit
4cc60b3755
3 changed files with 20 additions and 13 deletions
|
|
@ -1,15 +1,21 @@
|
|||
<video id="localVideo" autoplay muted></video>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="audioSource">Audio input source: </label>
|
||||
<select class="form-control" id="audioSource" (change)="start()"></select>
|
||||
</div>
|
||||
|
||||
<!-- <div class="select">
|
||||
<label for="audioOutput">Audio output destination: </label><select id="audioOutput" (change)="changeAudioDestination()"></select>
|
||||
</div> -->
|
||||
|
||||
<div class="form-group">
|
||||
<label for="videoSource">Video source: </label>
|
||||
<select class="form-control" id="videoSource" (change)="start()"></select>
|
||||
</div>
|
||||
<details [open]="detailsOpen">
|
||||
<summary>
|
||||
Settings:
|
||||
</summary>
|
||||
<div class="form-group">
|
||||
<label for="audioSource">Audio input source: </label>
|
||||
<select class="form-control" id="audioSource" (change)="start()"></select>
|
||||
</div>
|
||||
|
||||
<!-- <div class="select">
|
||||
<label for="audioOutput">Audio output destination: </label><select id="audioOutput" (change)="changeAudioDestination()"></select>
|
||||
</div> -->
|
||||
|
||||
<div class="form-group">
|
||||
<label for="videoSource">Video source: </label>
|
||||
<select class="form-control" id="videoSource" (change)="start()"></select>
|
||||
</div>
|
||||
</details>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import { AfterViewInit, Component, EventEmitter, Input, Output } from '@angular/
|
|||
styleUrls: ['./input-manager.component.scss']
|
||||
})
|
||||
export class InputManagerComponent implements AfterViewInit {
|
||||
@Input() detailsOpen: boolean = true;
|
||||
@Output() streamOutput: EventEmitter<MediaStream> = new EventEmitter();
|
||||
stream: MediaStream;
|
||||
videoElement:any = document.querySelector('#localVideo');
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
</span>
|
||||
</div>
|
||||
<div class="modal-body d-flex flex-column">
|
||||
<app-input-manager (streamOutput)="handleStreamChange($event)"></app-input-manager>
|
||||
<app-input-manager (streamOutput)="handleStreamChange($event)" [detailsOpen]="false"></app-input-manager>
|
||||
<button *ngIf="!isRecording" class="btn btn-success mt-2" (click)="startRecording()">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
|
|
|
|||
Loading…
Reference in a new issue