feat: Add editor enhancements - export video, audio preview, publish panel, configurable ports

This commit is contained in:
empty
2026-01-06 17:29:43 +08:00
parent 79a6c2ef3e
commit 96eacf06ba
18 changed files with 2946 additions and 1701 deletions

View File

@@ -121,3 +121,26 @@ class InpaintResponse(BaseModel):
image_path: str
success: bool = True
class ExportRequest(BaseModel):
"""Request to export edited video"""
bgm_path: Optional[str] = Field(None, description="Background music path")
bgm_volume: float = Field(0.2, ge=0.0, le=1.0, description="BGM volume (0.0-1.0)")
class ExportResponse(BaseModel):
"""Response for export request"""
task_id: str
status: str = "pending"
class ExportStatusResponse(BaseModel):
"""Response for export status check"""
task_id: str
status: str # pending, processing, completed, failed
progress: float = 0.0 # 0.0 to 1.0
video_path: Optional[str] = None
download_url: Optional[str] = None
error: Optional[str] = None