public class RendererDiscoverer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RendererDiscoverer.Description |
static class |
RendererDiscoverer.Event |
static interface |
RendererDiscoverer.EventListener |
| Constructor and Description |
|---|
RendererDiscoverer(LibVLC libVLC,
java.lang.String name)
Create a MediaDiscover.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
boolean |
isReleased()
Returns true if native object is released
|
static RendererDiscoverer.Description[] |
list(LibVLC libVlc) |
protected RendererDiscoverer.Event |
onEventNative(int eventType,
long arg1,
long arg2,
float argf1)
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.
|
void |
setEventListener(RendererDiscoverer.EventListener listener) |
protected void |
setEventListener(VLCEvent.Listener<T> listener)
Set an event listener.
|
protected void |
setEventListener(VLCEvent.Listener<T> listener,
android.os.Handler handler)
Set an event listener and an executor Handler
|
boolean |
start()
Starts the discovery.
|
void |
stop()
Stops the discovery.
|
public RendererDiscoverer(LibVLC libVLC, java.lang.String name)
libVLC - a valid LibVLCname - Name of the vlc service discovery.public boolean start()
public void stop()
to stop the discovery directly.public void setEventListener(RendererDiscoverer.EventListener listener)
public static RendererDiscoverer.Description[] list(LibVLC libVlc)
protected RendererDiscoverer.Event onEventNative(int eventType, long arg1, long arg2, float argf1)
eventType - event typearg1 - first argumentarg2 - second argumentargf1 - first float argumentprotected void onReleaseNative()
public boolean isReleased()
public final boolean retain()
public final void release()
protected void finalize()
finalize in class java.lang.Objectprotected void setEventListener(VLCEvent.Listener<T> listener)
listener - see VLCEvent.Listenerprotected void setEventListener(VLCEvent.Listener<T> listener, android.os.Handler handler)
listener - see VLCEvent.Listenerhandler - Handler in which events are sent. If null, a handler will be created running on the main thread