Module uk.co.caprica.vlcj.natives
Interface libvlc_media_open_cb
- All Superinterfaces:
com.sun.jna.Callback
public interface libvlc_media_open_cb
extends com.sun.jna.Callback
Native open media callback.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.jna.Callback
com.sun.jna.Callback.UncaughtExceptionHandler -
Field Summary
Fields inherited from interface com.sun.jna.Callback
FORBIDDEN_NAMES, METHOD_NAME -
Method Summary
Modifier and TypeMethodDescriptionintopen(com.sun.jna.Pointer opaque, com.sun.jna.ptr.PointerByReference datap, com.sun.jna.ptr.LongByReference sizep) Callback prototype to open a custom bitstream input media.
-
Method Details
-
open
int open(com.sun.jna.Pointer opaque, com.sun.jna.ptr.PointerByReference datap, com.sun.jna.ptr.LongByReference sizep) Callback prototype to open a custom bitstream input media.The same media item can be opened multiple times. Each time, this callback is invoked. It should allocate and initialize any instance-specific resources, then store them in *datap. The instance resources can be freed in the @ref libvlc_close_cb callback.
For convenience, datap is initially NULL and sizep is initially 0.
- Parameters:
opaque- private pointer as passed to libvlc_media_new_callbacks()datap- storage space for a private data pointer [OUT]sizep- byte length of the bitstream or 0 if unknown [OUT]- Returns:
- 0 on success, non-zero on error. In case of failure, the other callbacks will not be invoked and any value stored in datap and sizep is discarded.
-