Struct vlc::Media
[−]
[src]
pub struct Media { pub ptr: *mut libvlc_media_t, }
Fields
ptr: *mut libvlc_media_t
Methods
impl Media
[src]
fn new_location(instance: &Instance, mrl: &str) -> Option<Media>
Create a media with a certain given media resource location, for instance a valid URL.
fn new_path<T: AsRef<Path>>(instance: &Instance, path: T) -> Option<Media>
Create a media for a certain file path.
fn new_fd(instance: &Instance, fd: i32) -> Option<Media>
fn mrl(&self) -> Option<String>
fn event_manager<'a>(&'a self) -> EventManager<'a>
fn get_meta(&self, meta: Meta) -> Option<String>
Read the meta of the media. If the media has not yet been parsed this will return None.
fn set_meta(&self, meta: Meta, value: &str)
Set the meta of the media. (This function will not save the meta, call save_meta in order to save the meta)
fn save_meta(&self) -> bool
Save the meta previously set.
fn state(&self) -> State
Get current state of media descriptor object.
fn duration(&self) -> Option<i64>
Get duration (in ms) of media descriptor object item.
fn parse(&self)
Parse a media.
fn parse_async(&self)
Parse a media.
fn is_parsed(&self) -> bool
Get Parsed status for media descriptor object.