Triton Mobile SDK for Android 3.5.1 This is a custom android player made by Triton Digital

Loading...
Searching...
No Matches
Public Member Functions | List of all members
com.tritondigital.net.streaming.proxy.client.Client.DataReceivedListener Interface Reference

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.

## Detailed Description

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.

## Member Function Documentation

## ◆ onDataReceived()

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.

The documentation for this interface was generated from the following file:

- sdk/src/main/java/com/tritondigital/net/streaming/proxy/client/Client.java