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
This commit is contained in:
3
src/player/mod.rs
Normal file
3
src/player/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
pub mod player;
|
||||
|
||||
pub use player::{play_video, PlayerConfig};
|
||||
22
src/player/player.rs
Normal file
22
src/player/player.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
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(())
|
||||
}
|
||||
Reference in New Issue
Block a user