Add frontend/src/types.ts
This commit is contained in:
parent
c850a5fdc9
commit
53f552bd9a
1 changed files with 37 additions and 0 deletions
37
frontend/src/types.ts
Normal file
37
frontend/src/types.ts
Normal 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[];
|
||||
}
|
||||
Loading…
Reference in a new issue