feat: add SRTDestination type and multi-destination support
This commit is contained in:
parent
9e9ed27c80
commit
fd4c364144
1 changed files with 11 additions and 1 deletions
|
|
@ -7,10 +7,17 @@ export interface PortStatus {
|
||||||
uptime_seconds: number;
|
uptime_seconds: number;
|
||||||
current_file: string;
|
current_file: string;
|
||||||
codec: string;
|
codec: string;
|
||||||
|
srt_destinations: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CodecType = 'PRORES' | 'DNXHD' | 'UNCOMPRESSED' | 'H264';
|
export type CodecType = 'PRORES' | 'DNXHD' | 'UNCOMPRESSED' | 'H264';
|
||||||
|
|
||||||
|
export interface SRTDestination {
|
||||||
|
url: string;
|
||||||
|
label: string;
|
||||||
|
enabled: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export interface RecorderConfig {
|
export interface RecorderConfig {
|
||||||
port_index: number;
|
port_index: number;
|
||||||
codec: CodecType;
|
codec: CodecType;
|
||||||
|
|
@ -18,7 +25,8 @@ export interface RecorderConfig {
|
||||||
quality_profile: string;
|
quality_profile: string;
|
||||||
recording_path: string;
|
recording_path: string;
|
||||||
srt_enabled: boolean;
|
srt_enabled: boolean;
|
||||||
srt_destination: string;
|
srt_destination: string; // legacy single (kept for compat)
|
||||||
|
srt_destinations: SRTDestination[]; // multi-destination
|
||||||
preview_enabled: boolean;
|
preview_enabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -29,6 +37,8 @@ export interface SCTE35Marker {
|
||||||
splice_immediate: boolean;
|
splice_immediate: boolean;
|
||||||
timestamp: string;
|
timestamp: string;
|
||||||
webhook_url: string | null;
|
webhook_url: string | null;
|
||||||
|
port_index: number | null;
|
||||||
|
srt_destination_url: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WebSocketMessage {
|
export interface WebSocketMessage {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue