pub struct MediaList { /* private fields */ }
Implementations§
Source§impl MediaList
impl MediaList
Sourcepub fn set_media(&self, md: &Media)
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.
Sourcepub fn media(&self) -> Option<Media>
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.
Sourcepub fn add_media(&self, md: &Media) -> Result<(), ()>
pub fn add_media(&self, md: &Media) -> Result<(), ()>
Add media instance to media list. The MediaList::lock should be held upon entering this function.
Sourcepub fn insert_media(&self, md: &Media, pos: i32) -> Result<(), ()>
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.
Sourcepub fn remove_index(&self, pos: i32) -> Result<(), ()>
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.
Sourcepub fn count(&self) -> i32
pub fn count(&self) -> i32
Get count on media list items. The MediaList::lock should be held upon entering this function.
Sourcepub fn item_at_index(&self, pos: i32) -> Option<Media>
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.
Sourcepub fn index_of_item(&self, md: &Media) -> Option<i32>
pub fn index_of_item(&self, md: &Media) -> Option<i32>
Find index position of List media instance in media list.
Sourcepub fn is_readonly(&self) -> bool
pub fn is_readonly(&self) -> bool
This indicates if this media list is read-only from a user point of view.
Sourcepub fn unlock(&self)
pub fn unlock(&self)
Release lock on media list items The libvlc_media_list_lock should be held upon entering this function.
Sourcepub fn event_manager<'a>(&'a self) -> EventManager<'a>
pub fn event_manager<'a>(&'a self) -> EventManager<'a>
Get EventManager from this media list instance.
Sourcepub fn raw(&self) -> *mut libvlc_media_list_t
pub fn raw(&self) -> *mut libvlc_media_list_t
Returns raw pointer