pub struct TrackInfo {
pub track_number: u64,
pub track_type: u8,
pub codec_id: String,
pub codec_private: Option<Bytes>,
pub width: u32,
pub height: u32,
pub sample_rate: f64,
pub channels: u32,
}Expand description
Track metadata from Tracks\TrackEntry (v1 subset — see crate adr/0001).
Fields§
§track_number: u64TrackNumber — referenced by SimpleBlock’s track number field.
track_type: u8Raw TrackType (1 = video, 2 = audio; other values pass through
unmapped in v1).
codec_id: StringRaw WebM CodecID string (e.g. "V_VP9", "A_OPUS"). Mapping to a
Mediaway CodecKind is the facade’s job, not this crate’s.
codec_private: Option<Bytes>TrackEntry\CodecPrivate (codec-specific init data, e.g. OpusHead).
None when absent (VP8/VP9 without config, legacy files).
width: u32Video width in pixels (0 for non-video tracks or if absent).
height: u32Video height in pixels (0 for non-video tracks or if absent).
sample_rate: f64Audio\SamplingFrequency in Hz (spec default 8000.0 when absent; 0.0
only ever appears if a file explicitly encodes it, which spec forbids).
channels: u32Audio\Channels (spec default 1 when absent).