java.lang.Object
uk.co.caprica.vlcj.medialist.MediaApi
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a new item to the list for a media resource locator.boolean
add
(CallbackMedia callbackMedia, String... options) Add a new item to the list for native callback media.boolean
Add a new item to the list for aMediaRef
.boolean
clear()
Clear the entire list.int
count()
Get the number of items currently in the list.boolean
Insert an item into the list for a media resource locator.boolean
insert
(int index, CallbackMedia callbackMedia, String... options) Insert an item into the last for native callback media.boolean
Insert an item into the list for aMediaRef
.boolean
Is 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 newMedia
for an item in the list.Create a newMediaList
from this list.Create a newMediaListRef
from this list.newMediaRef
(int index) Get a newMediaRef
for an item in the list.boolean
remove
(int index) Remove an item from the list.
-
Method Details
-
add
-
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:
true
if successful;false
if error
-
add
-
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:
true
if successful;false
if 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:
true
if successful;false
if 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:
true
if successful;false
if error
-
remove
public boolean remove(int index) Remove an item from the list.- Parameters:
index
- index of the item to remove- Returns:
true
if successful;false
if error
-
clear
public boolean clear()Clear the entire list.- Returns:
true
if successful;false
if error
-
count
public int count()Get the number of items currently in the list.- Returns:
- item count
-
mrls
-
mrl
Get the media resource locator for a particular item in the list.- Parameters:
index
- item index- Returns:
- media resource locator
-
newMediaRef
-
newMedia
-
isReadOnly
public boolean isReadOnly()Is the list read-only?- Returns:
true
if the list is read-only;false
if it is not
-
newMediaList
-
newMediaListRef
Create a newMediaListRef
from this list.The caller must release the returned
MediaListRef
when it no longer has any use for it.- Returns:
- media list reference
-