public interface libvlc_media_read_cb
extends com.sun.jna.Callback
Modifier and Type | Method and Description |
---|---|
size_t |
read(com.sun.jna.Pointer opaque,
com.sun.jna.Pointer buf,
size_t len)
Callback prototype to read data from a custom bitstream input media.
|
size_t read(com.sun.jna.Pointer opaque, com.sun.jna.Pointer buf, size_t len)
If no data is immediately available, then the callback should sleep.
The application is responsible for avoiding deadlock situations. In particular, the callback should return an error if playback is stopped; if it does not return, then libvlc_media_player_stop() will never return.
opaque
- private pointer as set by the @ref libvlc_media_open_cb callbackbuf
- start address of the buffer to read data intolen
- bytes length of the bufferCopyright © 2009–2015 Caprica Software Limited. All rights reserved.