adapter-local-files: media provider, index, transcoder

This commit is contained in:
2026-07-12 02:53:27 +02:00
parent e389e9e002
commit b93b14efe4
9 changed files with 973 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
use std::path::PathBuf;
/// Configuration for the local files media provider.
pub struct LocalFilesConfig {
/// Root directory containing video files. All files are served relative to this.
pub root_dir: PathBuf,
/// Public base URL of this API server, used to build stream URLs.
pub base_url: String,
/// Directory for FFmpeg HLS transcode cache. `None` disables transcoding.
pub transcode_dir: Option<PathBuf>,
/// How long (hours) to keep transcode cache entries. Passed to TranscodeManager.
pub cleanup_ttl_hours: u32,
}