Function discord::voice::open_ytdl_stream [] [src]

pub fn open_ytdl_stream(url: &str) -> Result<Box<AudioSource>>

Use youtube-dl and ffmpeg to stream from an internet source.

Requires both youtube-dl and ffmpeg to be on the path and executable. On Windows, this means the .exe version of youtube-dl must be used.

The audio download is streamed rather than downloaded in full; this may be desireable for longer audios but can introduce occasional brief interruptions.