Possible error codes that NexPlayer can return. This is a Java enum so each error constant is an object, but you can convert to or from a numerical code using instance and class methods.
To get the error constant for a given code, call fromIntegerValue(int).
To get the error code given an error constant, call getIntegerCode().
Because this is a Java enum, it is very easy to include the name of the error constant in an error message instead of just the number. For example, the following code logs the errors that are received from the NexPlayer engine:
void onError( NexPlayer mp, NexErrorCode errorCode ) {
NexLog.d( "onError",
"Received the error: "
+ errorCode.name()
+ " (0x"
+ Integer.toHexString(
errorCode.getIntegerCode())
+ ")."
);Method has no effect. The same command has been called already in the same state or the command is invalid.
Parameter is invalid. This error will be called if the UI has wrong parameters such as NULL.
State is invalid. The command is invalid at the current state. E.g. pause() is called when the current state is NEXPLAYER_STATE_STOP.
File contains invalid syntax. The content file contains invalid syntax. It should be checked whether or not the content is a normal DRM file.
The audio codec is not supported. NexPlayer does not support the audio codec of the content. E.g. The content is not yet supported by NexPlayer or a customer could not include codecs of NexPlayer SDK due to licensing issues.
The video codec is not supported. NexPlayer does not support the video codec of the content. E.g. The content is not yet supported by NexPlayer or the customer did not include codecs of NexPlayer SDK due to licensing issues.
The video resolution is not supported. The resolution of the content is too high to play back. E.g. The device has a resolution limit of 1080P but the content is 4K.
The content format is not supported or is not playable A/V track. The format of the content is not supported. The content has unavailable protocol(HLS, DASH, etc) or no playable A/V track which has audio or video codecs that are not supported.
The codec reported an error. Audio or video decoding error. E.g. NexPlayer get a failure during parsing the content for playback or during decoding the audio or video bitstreams.
Unknown error. This error is a kind of internal error such as "system failure". E.g. NexPlayer returns this when memory allocation is failed for unknown reasons. It's mostly an error that the user can not handle. Please contact a NexPlayer developer for more details.
The media source does not support seeking. The only Iframe content(Content is composed of I, B, and P frames), chunked mode based PD content, or live content with a wide interval between each Iframe cannot be seeked.
The text is not supported. The content has an unsupported text type.
The media source open timed out. There is no response from the server within the set time of SOURCE_OPEN_TIMEOUT property while calling open(). The default value of the SOURCE_OPEN_TIMEOUT property is 300 seconds.
The response timed out. There is no response from the server within the set time of DATA_INACTIVITY_TIMEOUT property. The default value of the DATA_INACTIVITY_TIMEOUT property is 60 seconds.
Network or protocol error. Network related error such as socket errors. Ex. socket open fail, connect fail, bind fail etc.
The content media was not found. The content media was not found on the server. Ex. 403 forbidden, 404 not found etc.
The content DRM decrypt fail. The default error of content DRM Decrypt Fail
The content DRM initialization fails. Ex. Invalid License URL.
HDCP levels are insufficient to meet the requirements.
HDCP is not supported on the device.
Crypto key not available.
DRM license expired.
DRM Resource busy or unavailable
Attempted to use a closed drm session
Drm Operation not supported in this configuration, The content DRM Decrypt Failed.
Required security level is not met.
Decrytped frame exceeds size of output buffer.
DRM Session state was lost.
Required resource was not able to be allocated.
Resource manager reclaimed the media resource used by the codec.
The URL is invalid.
The syntax of the response is invalid. Ex. Mandatory header is missed in the response.
ContentInfo parse fail. (SDP, ASF Header, Playlist...)
Socket connection closed.
Response is not arrived until timeout.
The HTTP response data recevied from the Server is error. It's not 200 in HTTP response. Ex. 500, 503 etc
No track to play due to a bitrate/resolution limit. E.g. The MIN_BW property is set to 2 Mbps and the playlist of playing contain has only 500 Kbps and 1 Mbps tracks.
Failed to download the key file to decrypt the file that has been encrypted with AES.
NexPlayer met some errors when creating HTTP Downloader.
The user called a part of HTTP Downloader before creating or initializing.
A parameter from the UI is null or an incorrect value when HTTP downloader sends the message.
Http downloader failed to allocate or free memory.
System related error.
Http downloader writing failure.
The user attempted to call the same method many times. All duplicates (except the first one) will be regarded as an error.
Http downloader event is full
Http downloader failed to connect to a network.
Http downloader received an invalid response from the server.
Http downloader received an invalid response from the server.
Http downloader detected an incorrect URL.
Http downloader requested an already downloaded content file.
NexPlayer detected an unsupported feature(i.e. recording or timeshift) or called a specific feature.
NexPlayer initialization failed by License File.
NexPlayer initialization failed by the invalid SDK. Error while creating or initializing NexPlayer.
Error while creating or initializing NexPlayer.
Error while creating or initializing NexPlayer. The current app id is not activated
SDK has expired