public class LibVLC
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LibVLC.Event |
static interface |
LibVLC.OnNativeCrashListener |
| Constructor and Description |
|---|
LibVLC(android.content.Context context)
Create a LibVLC
|
LibVLC(android.content.Context context,
java.util.ArrayList<java.lang.String> options)
Create a LibVLC withs options
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
changeset()
Get the libVLC changeset
|
java.lang.String |
compiler()
Get the libVLC compiler
|
boolean |
isReleased()
Returns true if native object is released
|
protected LibVLC.Event |
onEventNative(int eventType,
long arg1,
float arg2)
Called when libvlc send events.
|
protected 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.
|
protected void |
setEventListener(org.videolan.libvlc.VLCEvent.Listener<T> listener)
Set an event listener.
|
static void |
setOnNativeCrashListener(LibVLC.OnNativeCrashListener l) |
void |
setUserAgent(java.lang.String name,
java.lang.String http)
Sets the application name.
|
java.lang.String |
version()
Get the libVLC version
|
public LibVLC(android.content.Context context,
java.util.ArrayList<java.lang.String> options)
options - public LibVLC(android.content.Context context)
public java.lang.String version()
public java.lang.String compiler()
public java.lang.String changeset()
protected LibVLC.Event onEventNative(int eventType, long arg1, float arg2)
eventType - event typearg1 - first argumentarg2 - second argumentprotected void onReleaseNative()
public static void setOnNativeCrashListener(LibVLC.OnNativeCrashListener l)
public void setUserAgent(java.lang.String name,
java.lang.String http)
name - human-readable application name, e.g. "FooBar player 1.2.3"http - HTTP User Agent, e.g. "FooBar/1.2.3 Python/2.6.0"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