openvidu/openvidu-testapp/src/app/components/dialogs/options-dialog/video-resolution/video-resolution.component.ts

32 lines
825 B
TypeScript
Raw Normal View History

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
})
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,
});
}
}