Struct vlc::MediaList [−][src]
pub struct MediaList { /* fields omitted */ }
Methods
impl MediaList
[src]
impl MediaList
pub fn new(instance: &Instance) -> Option<MediaList>
[src]
pub fn new(instance: &Instance) -> Option<MediaList>
Create an empty media list.
pub fn set_media(&self, md: &Media)
[src]
pub fn set_media(&self, md: &Media)
Associate media instance with this media list instance. If another media instance was present it will be released. The libvlc_media_list_lock should NOT be held upon entering this function.
pub fn media(&self) -> Option<Media>
[src]
pub fn media(&self) -> Option<Media>
Get media instance from this media list instance. The MediaList::lock should NOT be held upon entering this function.
pub fn add_media(&self, md: &Media) -> Result<(), ()>
[src]
pub fn add_media(&self, md: &Media) -> Result<(), ()>
Add media instance to media list. The MediaList::lock should be held upon entering this function.
pub fn insert_media(&self, md: &Media, pos: i32) -> Result<(), ()>
[src]
pub fn insert_media(&self, md: &Media, pos: i32) -> Result<(), ()>
Insert media instance in media list on a position. The MediaList::lock should be held upon entering this function.
pub fn remove_index(&self, pos: i32) -> Result<(), ()>
[src]
pub fn remove_index(&self, pos: i32) -> Result<(), ()>
Remove media instance from media list on a position. The MediaList::lock should be held upon entering this function.
pub fn count(&self) -> i32
[src]
pub fn count(&self) -> i32
Get count on media list items. The MediaList::lock should be held upon entering this function.
pub fn item_at_index(&self, pos: i32) -> Option<Media>
[src]
pub fn item_at_index(&self, pos: i32) -> Option<Media>
List media instance in media list at a position. The MediaList::lock should be held upon entering this function.
pub fn index_of_item(&self, md: &Media) -> Option<i32>
[src]
pub fn index_of_item(&self, md: &Media) -> Option<i32>
Find index position of List media instance in media list.
pub fn is_readonly(&self) -> bool
[src]
pub fn is_readonly(&self) -> bool
This indicates if this media list is read-only from a user point of view.
pub fn lock(&self)
[src]
pub fn lock(&self)
Get lock on media list items
pub fn unlock(&self)
[src]
pub fn unlock(&self)
Release lock on media list items The libvlc_media_list_lock should be held upon entering this function.
pub fn event_manager<'a>(&'a self) -> EventManager<'a>
[src]
pub fn event_manager<'a>(&'a self) -> EventManager<'a>
Get EventManager from this media list instance.
pub fn raw(&self) -> *mut libvlc_media_list_t
[src]
pub fn raw(&self) -> *mut libvlc_media_list_t
Returns raw pointer