public class MediaList
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaList.Event |
static interface |
MediaList.EventListener |
| Modifier | Constructor and Description |
|---|---|
|
MediaList(LibVLC libVLC)
Create a MediaList from libVLC
|
protected |
MediaList(Media m) |
protected |
MediaList(MediaDiscoverer md) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Get the number of Media.
|
Media |
getMediaAt(int index)
Get a Media at specified index.
|
protected boolean |
isLocked() |
boolean |
isReleased()
Returns true if native object is released
|
protected MediaList.Event |
onEventNative(int eventType,
long arg1,
float arg2)
Called when libvlc send events.
|
void |
onReleaseNative()
Called when native object is released (refcount is 0).
|
void |
release()
Release the native object if ref count is 1.
|
boolean |
retain()
Increment internal ref count of the native object.
|
void |
setEventListener(MediaList.EventListener listener) |
protected void |
setEventListener(org.videolan.libvlc.VLCEvent.Listener<T> listener)
Set an event listener.
|
public MediaList(LibVLC libVLC)
libVLC - a valid libVLCprotected MediaList(MediaDiscoverer md)
md - Should not be releasedprotected MediaList(Media m)
m - Should not be releasedpublic void setEventListener(MediaList.EventListener listener)
protected MediaList.Event onEventNative(int eventType, long arg1, float arg2)
eventType - event typearg1 - first argumentarg2 - second argumentpublic int getCount()
public Media getMediaAt(int index)
index - index of the mediarelease().public void onReleaseNative()
protected boolean isLocked()
public boolean isReleased()
public final boolean retain()
public final void release()
protected void setEventListener(org.videolan.libvlc.VLCEvent.Listener<T> listener)
listener - see VLCEvent.Listener