refactor: move VideoRenderConfig from domain to adapter, inject at construction
Some checks failed
CI / Check / Test (push) Failing after 44s

This commit is contained in:
2026-06-03 01:18:52 +02:00
parent e8e83d3f16
commit 3cec726e3d
5 changed files with 75 additions and 56 deletions

View File

@@ -534,16 +534,6 @@ pub trait WrapUpStatsQuery: Send + Sync {
// ── Video renderer ──────────────────────────────────────────────────────────
pub struct VideoRenderConfig {
pub slide_duration_secs: u32,
pub transition_duration_secs: f32,
pub resolution: (u32, u32),
pub ffmpeg_path: String,
pub font_path: Option<String>,
pub logo_path: Option<String>,
pub bg_dir: Option<String>,
}
pub struct VideoRenderAssets {
pub poster_images: Vec<(String, Vec<u8>)>,
pub cast_images: Vec<(String, Vec<u8>)>,
@@ -555,6 +545,5 @@ pub trait WrapUpVideoRenderer: Send + Sync {
&self,
report: &WrapUpReport,
assets: VideoRenderAssets,
config: &VideoRenderConfig,
) -> Result<Vec<u8>, DomainError>;
}