feat: expand livestream management platform

This commit is contained in:
admin committed 2026-08-19 22:24:01 +08:00
1 parent 383c066d86
commit ed62d42a63
12 files changed
+223 -24

No files matched your search

+16
View File
@@ -1,5 +1,19 @@
import api from './client'
export interface RenditionConfig {
label: string
enabled: boolean
width: number
height: number
fps: number
codec: 'libx264' | 'libx265'
bitrate: string
crf: number
preset: 'ultrafast' | 'superfast' | 'veryfast' | 'faster' | 'fast' | 'medium' | 'slow'
audio_bitrate: string
keyframe_seconds: number
}
export interface StreamInfo {
id: number
title: string
@@ -15,6 +29,7 @@ export interface StreamInfo {
replay_file?: string
chapters: Chapter[]
transcode_profile: string
renditions?: RenditionConfig[] | null
homepage_visible: boolean
remote_control_enabled: boolean
}
@@ -32,6 +47,7 @@ export interface StreamCreateReq {
replay_file?: string
chapters?: Chapter[]
transcode_profile?: string
renditions?: RenditionConfig[]
homepage_visible?: boolean
remote_control_enabled?: boolean
}