Skip to main content

audio_play_url

Function audio_play_url 

Source
pub fn audio_play_url(url: &str) -> i32
Expand description

Fetch audio from a URL and play it. The host sends an Accept header listing supported codecs, records the response Content-Type, and rejects obvious HTML/JSON error bodies when no audio signature is found (-4). Returns 0 on success, negative on error.