public interface CallbackMedia
Implementations are allowed to block the native thread when waiting for IO - however care must be taken, e.g. on error conditions, to not block indefinitely as doing so will prevent the native media player from being stopped.
Implementations of this class by definition rely on the use of native callbacks that are implemented in Java code - steps must be taken to prevent instances of implementation classes from being garbage collected otherwise the native code will crash when the Java object disappears.
Callback media requires LibVLC 3.0.0 or later.
Modifier and Type | Method and Description |
---|---|
libvlc_media_close_cb |
getClose()
Get the native close media callback.
|
com.sun.jna.Pointer |
getOpaque()
Get the native opaque handle.
|
libvlc_media_open_cb |
getOpen()
Get the native open media callback.
|
libvlc_media_read_cb |
getRead()
Get the native read media callback.
|
libvlc_media_seek_cb |
getSeek()
Get the native seek media callback.
|
libvlc_media_open_cb getOpen()
libvlc_media_read_cb getRead()
libvlc_media_seek_cb getSeek()
libvlc_media_close_cb getClose()
com.sun.jna.Pointer getOpaque()
Copyright © 2009–2015 Caprica Software Limited. All rights reserved.