Add frontend/src/types.ts

This commit is contained in:
Zac Gaetano 2026-04-14 09:21:19 -04:00
parent c850a5fdc9
commit 53f552bd9a

37
frontend/src/types.ts Normal file
View file

@ -0,0 +1,37 @@
export interface PortStatus {
port_index: number;
is_recording: boolean;
frame_count: number;
fps: number;
bitrate_mbps: number;
uptime_seconds: number;
current_file: string;
codec: string;
}
export type CodecType = 'PRORES' | 'DNXHD' | 'UNCOMPRESSED' | 'H264';
export interface RecorderConfig {
port_index: number;
codec: CodecType;
bitrate: string;
quality_profile: string;
recording_path: string;
srt_enabled: boolean;
srt_destination: string;
preview_enabled: boolean;
}
export interface SCTE35Marker {
event_id: number;
duration_seconds: number;
out_of_network: boolean;
splice_immediate: boolean;
timestamp: string;
webhook_url: string | null;
}
export interface WebSocketMessage {
type: string;
ports?: PortStatus[];
}