Files
momentry_core/src/player/player.rs
T
accusys 75edf0aa71 Initial commit: Momentry Core v0.1
- Rust-based digital asset management system
- Video analysis: ASR, OCR, YOLO, Face, Pose
- RAG capabilities with Qdrant vector database
- Multi-database support: PostgreSQL, Redis, MongoDB
- Monitoring system with launchd plists
- n8n workflow automation integration
2026-03-25 14:53:41 +08:00

23 lines
575 B
Rust

use crate::core::overlay::OverlayFlags;
pub struct PlayerConfig {
pub sync_delay_ms: u64,
pub overlay_flags: OverlayFlags,
}
impl Default for PlayerConfig {
fn default() -> Self {
Self {
sync_delay_ms: 800,
overlay_flags: OverlayFlags::default(),
}
}
}
pub async fn play_video(path: &str, config: PlayerConfig) -> anyhow::Result<()> {
// TODO: Implement video player with overlay
// Will integrate existing video_player functionality
println!("Playing: {} with config: {:?}", path, config);
Ok(())
}