diff --git a/frontend/src/types.ts b/frontend/src/types.ts index 1dc8602..b24fdda 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -7,10 +7,17 @@ export interface PortStatus { uptime_seconds: number; current_file: string; codec: string; + srt_destinations: string[]; } export type CodecType = 'PRORES' | 'DNXHD' | 'UNCOMPRESSED' | 'H264'; +export interface SRTDestination { + url: string; + label: string; + enabled: boolean; +} + export interface RecorderConfig { port_index: number; codec: CodecType; @@ -18,7 +25,8 @@ export interface RecorderConfig { quality_profile: string; recording_path: string; srt_enabled: boolean; - srt_destination: string; + srt_destination: string; // legacy single (kept for compat) + srt_destinations: SRTDestination[]; // multi-destination preview_enabled: boolean; } @@ -29,6 +37,8 @@ export interface SCTE35Marker { splice_immediate: boolean; timestamp: string; webhook_url: string | null; + port_index: number | null; + srt_destination_url: string | null; } export interface WebSocketMessage {