Create a basic frontend and an endpoint to get video stream.

This commit is contained in:
Florian THIERRY
2026-07-24 15:38:27 +02:00
parent c3806f49ba
commit f8f86eeae1
35 changed files with 9665 additions and 16 deletions
+7
View File
@@ -6,7 +6,9 @@ use std::path::Path;
use std::io::Read;
use lumiere_domain::video::error::VideoError;
use lumiere_domain::video::model::library_item::{LibraryItem, LibraryRawItem};
use lumiere_domain::video::model::video::Video;
use lumiere_domain::video::port::VideoPort;
use uuid::Uuid;
#[derive(Clone)]
pub struct VideoService {
@@ -38,6 +40,11 @@ impl VideoService {
let all_items = already_existing_items.into_iter().chain(new_items).collect();
Ok(all_items)
}
pub fn get_video_stream(&self, video_id: Uuid) -> Result<Video, VideoError> {
self.video_port.get_video_stream(video_id)
.map_err(|_| VideoError::VideoDoesNotExists)
}
}