public interface IMediaPlayerCustomDataProvider
| Modifier and Type | Method and Description |
|---|---|
int |
onReadData(java.nio.ByteBuffer buffer,
int bufferSize) |
long |
onSeek(long offset,
int whence) |
int onReadData(java.nio.ByteBuffer buffer,
int bufferSize)
buf - the buffer pointer that you need to fill data.buf_size - the bufferSize need to fill of the buffer pointer.long onSeek(long offset,
int whence)
offset - the value of seek offset.whence - the postion of start seeking, the directive whence as follows:
0 - SEEK_SET : The file offset is set to offset bytes.
1 - SEEK_CUR : The file offset is set to its current location plus offset bytes.
2 - SEEK_END : The file offset is set to the size of the file plus offset bytes.
65536 - AVSEEK_SIZE : Optional. Passing this as the "whence" parameter to a seek function
causes it to return the filesize without seeking anywhere.