|
Triton Mobile SDK for Android 3.5.1
This is a custom android player made by Triton Digital
|
Interface definition for a callback to be invoked when new data is received from the stream. More...
Public Member Functions | |
| boolean | onDataReceived (byte[] data, int dataLength) |
| Data has been received from the stream. | |
Interface definition for a callback to be invoked when new data is received from the stream.
Methods on this listener may be invoked from a secondary thread. The class implementing this listener should be thread-safe.
| boolean com.tritondigital.net.streaming.proxy.client.Client.DataReceivedListener.onDataReceived | ( | byte[] | data, |
| int | dataLength | ||
| ) |
Data has been received from the stream.
To allow buffers reusing, the length of valid data in the array is passed. Returns false if there was an error while treating / enqueuing the data, which typically indicates to terminate the connection.