pub struct Matroska {
pub info: Info,
pub tracks: Vec<Track>,
pub attachments: Vec<Attachment>,
pub chapters: Vec<ChapterEdition>,
pub tags: Vec<Tag>,
}
Expand description
A Matroska file
Fields§
§info: Info
The file’s Info segment
tracks: Vec<Track>
The file’s Tracks segment
attachments: Vec<Attachment>
The file’s Attachments segment
chapters: Vec<ChapterEdition>
The file’s Chapters segment
The file’s Tags segment
Implementations§
source§impl Matroska
impl Matroska
sourcepub fn open<R: Read + Seek>(file: R) -> Result<Matroska, MatroskaError>
pub fn open<R: Read + Seek>(file: R) -> Result<Matroska, MatroskaError>
Parses contents of open Matroska file
sourcepub fn get<R, P>(file: R) -> Result<Option<P::Output>, MatroskaError>where
R: Read + Seek,
P: Parseable,
👎Deprecated since 0.21.0: use matroska::get() function instead
pub fn get<R, P>(file: R) -> Result<Option<P::Output>, MatroskaError>where R: Read + Seek, P: Parseable,
Returns a single item from the Matroska file such as Info
sourcepub fn video_tracks(&self) -> impl Iterator<Item = &Track>
pub fn video_tracks(&self) -> impl Iterator<Item = &Track>
Returns all tracks with a type of “video”
sourcepub fn audio_tracks(&self) -> impl Iterator<Item = &Track>
pub fn audio_tracks(&self) -> impl Iterator<Item = &Track>
Returns all tracks with a type of “audio”
sourcepub fn subtitle_tracks(&self) -> impl Iterator<Item = &Track>
pub fn subtitle_tracks(&self) -> impl Iterator<Item = &Track>
Returns all tracks with a type of “subtitle”