feat: streaming video download via ImageStorage::get_stream
Some checks failed
CI / Check / Test (push) Failing after 41s

This commit is contained in:
2026-06-02 23:45:31 +02:00
parent f160adcd1c
commit 1e063b6580
10 changed files with 93 additions and 9 deletions

View File

@@ -70,6 +70,13 @@ impl ImageStorage for PanicImageStorage {
async fn get(&self, _: &str) -> Result<Vec<u8>, DomainError> {
panic!()
}
async fn get_stream(
&self,
_: &str,
) -> Result<futures::stream::BoxStream<'static, Result<bytes::Bytes, DomainError>>, DomainError>
{
panic!()
}
async fn delete(&self, _: &str) -> Result<(), DomainError> {
panic!()
}
@@ -433,6 +440,12 @@ async fn test_app() -> Router {
allow_registration: false,
base_url: "http://localhost:3000".to_string(),
rate_limit: 20,
wrapup: application::config::WrapUpConfig {
font_path: None,
logo_path: None,
ffmpeg_path: "ffmpeg".into(),
max_concurrent_renders: 2,
},
},
},
rss_renderer: Arc::new(RssAdapter::new("http://localhost:3000".into())),