Register a callback with OTVVideoView to handle thumbnail errors.
API
Java
/**
* Register a callback with OTVVideoView
*/
public void setThumbnailListener(IOTVThumbnailListener listener);
IOTVThumbnailListerner needs to be implemented by application while registering.
|
Reason |
Description |
Application error handling recommendation |
|---|---|---|
|
ERROR_IO = 1 |
Failed to download thumbnail sprite |
No retry |
|
ERROR_DATA_PARSING = 2 |
An invalid argument is passed to extract thumbnail |
No retry |
|
ERROR_MEMORY = 3 |
Not enough memory to create/extract thumbnails |
|