pub struct AudioVariantSpec {
pub codec_string: String,
pub channels: u16,
pub sample_rate: u32,
pub relative_dir: String,
pub language: String,
pub name: String,
pub manifest: CmafTrackManifest,
}Expand description
Description of one audio rendition. CMAF-HLS uses a separate rendition group so video variants can switch bitrate without touching the audio track. We currently emit exactly one audio rendition (default English / undetermined-language); multi-track audio is a future task.
Fields§
§codec_string: StringCodec string for the audio track — typically
AAC_LC_CODEC_STRING (mp4a.40.2).
channels: u16Channel count. Goes in CHANNELS="<n>" per RFC 8216 §4.3.4.2.
sample_rate: u32Sample rate in Hz. Informational; not surfaced in the playlist directly but kept on the spec so the validator can verify the init segment matches.
relative_dir: StringRelative directory under the asset root, e.g. "audio".
language: StringBCP-47 language tag — "en", "es", "und" for undetermined.
name: StringHuman-readable rendition name. Players use this in their UI.
manifest: CmafTrackManifestTrait Implementations§
Source§impl Clone for AudioVariantSpec
impl Clone for AudioVariantSpec
Source§fn clone(&self) -> AudioVariantSpec
fn clone(&self) -> AudioVariantSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AudioVariantSpec
impl RefUnwindSafe for AudioVariantSpec
impl Send for AudioVariantSpec
impl Sync for AudioVariantSpec
impl Unpin for AudioVariantSpec
impl UnsafeUnpin for AudioVariantSpec
impl UnwindSafe for AudioVariantSpec
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