check_async

Function check_async 

Source
pub async fn check_async(
    url: &str,
    timeout: u32,
    max_depth: u8,
    max_retries: u8,
) -> StreamResult
Expand description

Check url for audio/video stream.

§Example

let item = av_stream_info_rust::check_async("https://example.com/test.m3u", 10, 3, 3).await?;
println!("{:#?}", item);

§Arguments

  • url - The url to check
  • timeout - TCP timeout for connect and read in seconds
  • max_depth - How many layers of http redirects or playlists should be followed
  • retries - Retry how many times to find at least one working stream