diff --git a/src/input/sources/hls.rs b/src/input/sources/hls.rs index 69dc426..1719925 100644 --- a/src/input/sources/hls.rs +++ b/src/input/sources/hls.rs @@ -16,6 +16,11 @@ use crate::input::{ }; /// Lazy HLS stream +/// +/// # Note: +/// +/// `Compose::create` for this struct panics if called outside of a +/// tokio executor since it uses background tasks. #[derive(Debug)] pub struct HlsRequest { /// HTTP client @@ -82,11 +87,11 @@ impl Compose for HlsRequest { async fn create_async( &mut self, ) -> Result>, AudioStreamError> { - Err(AudioStreamError::Unsupported) + self.create() } fn should_create_async(&self) -> bool { - false + true } }