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