Function av_stream_info_rust::check
[−]
[src]
pub fn check(
url: &str,
timeout: u32,
max_depth: u8,
retries: u8
) -> Vec<Result<StreamInfo, StreamCheckError>>
Decode playlist content string. It checks for M3U, PLS, XSPF and ASX content in the string.
Example
let list = av_stream_info_rust::check("https://example.com/test.m3u", 10, 3, 3); for item in list { println!("{:?}", item); }
Arguments
url
- The url to checktimeout
- TCP timeout for connect and read in secondsmax_depth
- How many layers of http redirects or playlists should be followedretries
- Retry how many times to find at least one working stream