java.lang.Object
uk.co.caprica.vlcj.medialist.MediaApi
Behaviour pertaining to the media items in the list.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a new item to the list for a media resource locator.booleanadd(CallbackMedia callbackMedia, String... options) Add a new item to the list for native callback media.booleanAdd a new item to the list for aMediaRef.booleanclear()Clear the entire list.intcount()Get the number of items currently in the list.booleanInsert an item into the list for a media resource locator.booleaninsert(int index, CallbackMedia callbackMedia, String... options) Insert an item into the last for native callback media.booleanInsert an item into the list for aMediaRef.booleanIs the list read-only?mrl(int index) Get the media resource locator for a particular item in the list.mrls()Get a list of media resource locators for the items in the list.newMedia(int index) Get a newMediafor an item in the list.Create a newMediaListfrom this list.Create a newMediaListReffrom this list.newMediaRef(int index) Get a newMediaReffor an item in the list.booleanremove(int index) Remove an item from the list.
-
Method Details
-
add
Add a new item to the list for a media resource locator.The list must not be read-only.
- Parameters:
mrl- media resource locatoroptions- options to add to the media- Returns:
trueif successful;falseif error
-
add
Add a new item to the list for native callback media.The list must not be read-only.
- Parameters:
callbackMedia- callback media componentoptions- options to add to the media- Returns:
trueif successful;falseif error
-
add
Add a new item to the list for aMediaRef.The list must not be read-only.
- Parameters:
mediaRef- media referenceoptions- options to add to the media- Returns:
trueif successful;falseif error
-
insert
Insert an item into the list for a media resource locator.The list must not be read-only.
- Parameters:
index- index at which to insert the itemmrl- media resource locatoroptions- options to add to the media- Returns:
trueif successful;falseif error
-
insert
Insert an item into the last for native callback media.The list must not be read-only.
- Parameters:
index- index at which to insert the itemcallbackMedia- callback media componentoptions- options to add to the media- Returns:
trueif successful;falseif error
-
insert
Insert an item into the list for aMediaRef.The list must not be read-only.
- Parameters:
index- index at which to insert the itemmediaRef- media referenceoptions- options to add to the media- Returns:
trueif successful;falseif error
-
remove
public boolean remove(int index) Remove an item from the list.- Parameters:
index- index of the item to remove- Returns:
trueif successful;falseif error
-
clear
public boolean clear()Clear the entire list.- Returns:
trueif successful;falseif error
-
count
public int count()Get the number of items currently in the list.- Returns:
- item count
-
mrls
Get a list of media resource locators for the items in the list.- Returns:
- media resource locators
-
mrl
Get the media resource locator for a particular item in the list.- Parameters:
index- item index- Returns:
- media resource locator
-
newMediaRef
Get a newMediaReffor an item in the list.The caller must release the returned
MediaRefwhen it no longer has any use for it.- Parameters:
index- item index- Returns:
- media reference
-
newMedia
Get a newMediafor an item in the list.The caller must release the returned
Mediawhen it no longer has any use for it.- Parameters:
index- item index- Returns:
- media
-
isReadOnly
public boolean isReadOnly()Is the list read-only?- Returns:
trueif the list is read-only;falseif it is not
-
newMediaList
Create a newMediaListfrom this list.The caller must release the returned
MediaListwhen it no longer has any use for it.- Returns:
- media list
-
newMediaListRef
Create a newMediaListReffrom this list.The caller must release the returned
MediaListRefwhen it no longer has any use for it.- Returns:
- media list reference
-