# Video.onError(function callback)
Listens on the video error event.
# Parameters
# function callback
The callback function for the video error event.
# Parameters
# Object res
Property | Type | Description |
---|---|---|
errMsg | string | Error message |
Valid values of errMsg
Value | Description | Minimum Version |
---|---|---|
MEDIA_ERR_NETWORK | An error occurred while downloading | |
MEDIA_ERR_DECODE | An error occurred while decoding | |
MEDIA_ERR_SRC_NOT_SUPPORTED | The video's src is not supported |