Try to stream the file in handler.
This commit is contained in:
@@ -123,7 +123,7 @@ impl VideoPort for LibraryItemAdapter {
|
||||
id: video.id,
|
||||
name: video.name,
|
||||
format: AVI,
|
||||
file: Box::new(TokioVideoFile::new(&video_file_path).map_err(|_| VideoError::FileReadingTechnicalIssue)?)
|
||||
file: Box::new(TokioVideoFile::new(&video_file_path))
|
||||
};
|
||||
|
||||
Ok(result)
|
||||
|
||||
Reference in New Issue
Block a user