Enum bindings::zaun::bot::voice::Source
zaun_bot::bindings::zaun::bot::voice::Source · Enum
pub enum Source { … }Where a track’s audio comes from.
Variants
Section titled “Variants”Url(String)
Section titled “Url(String)”An https:// Ogg Opus or WebM Opus file or stream (WebM where the host demuxes it;
elsewhere a track-error), fetched by the host under the bot’s
network grant (the server learns the host’s address) and played as it arrives.
http:// and https:// URLs to a local_network address are fetched the same
way, without leaving the host’s machine or network.
Ogg(Vec<u8>)
Section titled “Ogg(Vec<u8>)”Ogg Opus bytes the bot already holds (≤ 16 MiB).
Pushed
Section titled “Pushed”Opus packets the bot pushes with push, until end-stream.
Trait implementations
Section titled “Trait implementations”Clone, Debug