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]
impl Matroska
pub fn open(file: File) -> Result<Matroska, MatroskaError>
[src]
pub fn open(file: File) -> Result<Matroska, MatroskaError>
Parses contents of open Matroska file
pub fn video_tracks(&self) -> Vec<&Track>
[src]
pub fn video_tracks(&self) -> Vec<&Track>
Returns all tracks with a type of "video"
pub fn audio_tracks(&self) -> Vec<&Track>
[src]
pub fn audio_tracks(&self) -> Vec<&Track>
Returns all tracks with a type of "audio"
pub fn subtitle_tracks(&self) -> Vec<&Track>
[src]
pub fn subtitle_tracks(&self) -> Vec<&Track>
Returns all tracks with a type of "subtitle"