pub struct Track {Show 19 fields
pub number: u64,
pub uid: u64,
pub tracktype: Tracktype,
pub enabled: bool,
pub default: bool,
pub forced: bool,
pub hearing_impaired: Option<bool>,
pub visual_impaired: Option<bool>,
pub text_descriptions: Option<bool>,
pub original: Option<bool>,
pub commentary: Option<bool>,
pub interlaced: bool,
pub default_duration: Option<Duration>,
pub name: Option<String>,
pub language: Option<Language>,
pub codec_id: String,
pub codec_private: Option<Vec<u8>>,
pub codec_name: Option<String>,
pub settings: Settings,
}
Expand description
A TrackEntry segment in the Tracks segment container
Fields§
§number: u64
The track number, starting from 1
uid: u64
The track’s UID
tracktype: Tracktype
The track’s type
enabled: bool
If the track is usable
default: bool
If the track should be active if no other preferences found
forced: bool
If the track must be active during playback
hearing_impaired: Option<bool>
If the track is suitable for users with hearing impairments
visual_impaired: Option<bool>
If the track is suitable for users with visual impairments
text_descriptions: Option<bool>
If the track contains textual descriptions of video content
original: Option<bool>
If the track is in the content’s original language
commentary: Option<bool>
If the track contains commentary
interlaced: bool
If the track contains blocks using lacing
default_duration: Option<Duration>
Duration of each frame
name: Option<String>
A human-readable track name
language: Option<Language>
The track’s language
codec_id: String
The track’s codec’s ID
codec_private: Option<Vec<u8>>
Private data known only to the codec
codec_name: Option<String>
The track’s codec’s human-readable name
settings: Settings
The track’s audio or video settings