Struct matroska::Matroska
[−]
[src]
pub struct Matroska { pub info: Info, pub tracks: Vec<Track>, pub attachments: Vec<Attachment>, pub chapters: Vec<ChapterEdition>, }
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
Methods
impl Matroska
[src]
fn open(file: File) -> Result<Matroska, MatroskaError>
Parses contents of open Matroska file
fn video_tracks(&self) -> Vec<&Track>
Returns all tracks with a type of "video"
fn audio_tracks(&self) -> Vec<&Track>
Returns all tracks with a type of "audio"
fn subtitle_tracks(&self) -> Vec<&Track>
Returns all tracks with a type of "subtitle"