2024-09-17 14:46:21 +02:00
|
|
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
|
|
|
|
|
|
|
|
@Component({
|
2025-02-19 12:03:43 +01:00
|
|
|
selector: 'app-video-resolution',
|
|
|
|
|
templateUrl: './video-resolution.component.html',
|
|
|
|
|
styleUrls: ['./video-resolution.component.css'],
|
|
|
|
|
standalone: false
|
2024-09-17 14:46:21 +02:00
|
|
|
})
|
|
|
|
|
export class VideoResolutionComponent {
|
|
|
|
|
@Input() componentId: string;
|
|
|
|
|
@Input() showTitle = true;
|
|
|
|
|
@Input() width: number;
|
|
|
|
|
@Input() height: number;
|
|
|
|
|
@Input() frameRate?: number;
|
|
|
|
|
@Input() aspectRatio?: number;
|
|
|
|
|
@Output() resolutionChanged: EventEmitter<{
|
|
|
|
|
width: number;
|
|
|
|
|
height: number;
|
|
|
|
|
frameRate?: number;
|
|
|
|
|
aspectRatio?: number;
|
|
|
|
|
}> = new EventEmitter();
|
|
|
|
|
|
|
|
|
|
emitChanges() {
|
|
|
|
|
this.resolutionChanged.emit({
|
|
|
|
|
width: this.width,
|
|
|
|
|
height: this.height,
|
|
|
|
|
frameRate: this.frameRate,
|
|
|
|
|
aspectRatio: this.aspectRatio,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|