OTVNetworkStatisticsListener errors
The OTVNetworkStatisticsListener
provides HTTP errors that occur during playback. The errorCode corresponds to the HTTP error code, and the errorMessage is a short description of the code. Although only a few errors are listed here, the OTVNetworkStatisticsListener
provides all invalid HTTP response codes.
Register a callback with OTVNetworkStatistics
to handle network statistics errors.
API
/**
* Register a callback with OTVNetworkStatistics
*/
public void setNetworkStatisticsListener(OTVNetworkStatisticsListener listener);
OTVNetworkStatisticsListener needs to be implemented by application while registering.
errorCode | errorMessage | Description | Application error handling recommendation |
---|---|---|---|
403 | FORBIDDEN | The playback URL is forbidden. | No retry |
404 | NOT FOUND | The playback URL is moved, or does it not exist. | No retry |