pub enum AudioFormat {
AacMono40,
Aac64,
AacPlus32,
AacPlus64,
AacPlusAdts24,
AacPlusAdts32,
AacPlusAdts64,
Mp3128,
Wma32,
}Expand description
Valid values for additionalAudioUrl are:
- HTTP_40_AAC_MONO
- HTTP_64_AAC
- HTTP_32_AACPLUS
- HTTP_64_AACPLUS
- HTTP_24_AACPLUS_ADTS
- HTTP_32_AACPLUS_ADTS
- HTTP_64_AACPLUS_ADTS
- HTTP_128_MP3
- HTTP_32_WMA
Variants§
AacMono40
AAC format, monaural audio, 40kbps
Aac64
AAC format, 64kbps
AacPlus32
AACPlus format, 32kbps
AacPlus64
AACPlus format, 64kbps
AacPlusAdts24
AACPlus format in an ADTS container, 24kbps
AacPlusAdts32
AACPlus format in an ADTS container, 32kbps
AacPlusAdts64
AACPlus format in an ADTS container, 64kbps
Mp3128
MP3 format, 128kbps
Wma32
WMA format, 32kbps
Implementations§
Source§impl AudioFormat
impl AudioFormat
Sourcepub fn new_from_audio_url_map(
encoding: &str,
bitrate: &str,
) -> Result<Self, Error>
pub fn new_from_audio_url_map( encoding: &str, bitrate: &str, ) -> Result<Self, Error>
Determine the audio format from the encoding and bitrate information returned as part of a playlist track.
Sourcepub fn get_extension(&self) -> String
pub fn get_extension(&self) -> String
Determine the associated file extension for this format.
Sourcepub fn get_bitrate(&self) -> u32
pub fn get_bitrate(&self) -> u32
Determine the encoded audio bitrate for this format.
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
Source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioFormat
impl Debug for AudioFormat
Source§impl Display for AudioFormat
impl Display for AudioFormat
Source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
Source§impl PartialOrd for AudioFormat
impl PartialOrd for AudioFormat
Source§impl TryFrom<&str> for AudioFormat
impl TryFrom<&str> for AudioFormat
Source§impl TryFrom<String> for AudioFormat
impl TryFrom<String> for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl Freeze for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnwindSafe for AudioFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.