pub trait TranscriptProvider: Send + Sync {
// Required methods
fn extract_transcript<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<TranscriptResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn name(&self) -> &str;
fn supports_url(&self, url: &str) -> bool;
}Expand description
Transcript provider trait for different backends
Required Methods§
Sourcefn extract_transcript<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<TranscriptResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn extract_transcript<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<TranscriptResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Extract transcript from a video URL
Sourcefn supports_url(&self, url: &str) -> bool
fn supports_url(&self, url: &str) -> bool
Check if this provider supports the given URL