onError event
The onError event is called when an error occurs.
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
Number |
The unique error code |
|
details |
Object |
The error details |
|
Android-specific errors |
||
|
what |
Number |
|
|
extra |
Number |
|
|
message |
String |
|
|
Error code |
Category |
Description |
|---|---|---|
|
1000 |
UNKNOWN |
Any unknown error |
|
1001-1999 |
SOURCE |
Error in the source:
|
|
2001-2999 |
MEDIA |
Errors parsing or processing audio or video or subtitle streams:
|
|
3001-3999 |
NETWORK |
Errors from the network stack:
|
|
4001-4999 |
OFFLINECONTENT |
Errors for offline playback:
|
|
5001-5999 |
DRM |
Errors related to DRM:
|
|
6001-6999 |
SSM |
Errors related to SSM:
|
|
7001-7999 |
PLAYER |
Miscellaneous errors from the player:
|
|
8001-8999 |
BROADCAST CHANNEL |
Errors in playing broadcast services:
|