This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Session service exception.
Description
The session service is abnormal, and the application cannot obtain a response from the session service. For example, the session service is not running or the communication with the session service fails.
Possible Causes
The session service is killed during session restart.
Solution
The system retries the operation automatically. If the error persists for 3 seconds or more, stop the operation on the session or controller.
Destroy the current session or session controller and re-create it. If the re-creation fails, stop the operation on the session.
Error Message
The session does not exist.
Description
Attributes are set for or commands are sent to the session that does not exist.
Possible Causes
The session has been destroyed, and no session record exists on the server.
Solution
If the error occurs on the application, re-create the session. If the error occurs on Media Controller, stop sending query or control commands to the session.
If the error occurs on the session service, query the current session record and pass the correct session ID when creating the controller.
Error Message
The session controller does not exist.
Description
A control command or an event is sent to the controller that does not exist.
Possible Causes
The controller has been destroyed.
Solution
Query the session record and create the corresponding controller.
Error Message
Invalid session command.
Description
The control command or event sent to the session is not supported.
Possible Causes
The session does not support this command.
Solution
Stop sending the command or event. Query the commands supported by the session, and send a command supported.
Error Message
The session is not activated.
Description
A control command or event is sent to the session that is not activated.
Possible Causes
The session is in the inactive state.
Solution
Error Message
Too many commands or events.
Description
The session client sends too many messages or commands to the server in a period of time, causing the server to be overloaded.
Possible Causes
The server is overloaded with messages or events.
Solution
Control the frequency of sending commands or events.
Error Message
The remote connection is not established.
Description
The remote session does not exist, and the corresponding API calls fail.
Possible Causes
The remote session has been destroyed or has not been created.
Solution
Query the session status again to determine whether the remote session exists.
Error Message
The desktop lyrics feature of this application is not enabled.
Description
The desktop lyrics feature of the application is not enabled.
Possible Causes
The feature is enabled without calling the enableDesktopLyric API first.
Solution
Call the enableDesktopLyric API to enable the desktop lyrics feature.
Error Message
The desktop lyrics feature is not supported.
Description
The desktop lyrics feature is not supported on the current device.
Possible Causes
The desktop lyrics feature is not supported on the current device.
Solution
Use the isDesktopLyricSupported API to check whether the current device supports the desktop lyrics feature.
Error Message
The error code for cast control is unspecified.
Description
An unknown error occurs in the cast controller.
Possible Causes
Failure in status switching: The device does not support a quick transition from the current transmission state to the required state.
Device authentication failure: The authentication between the local and remote devices fails.
Invalid instance: The current instance ID is invalid for AVTransport.
Solution
Initiate the session again.
Error Message
An unspecified error occurs in the remote player.
Description
An unknown error occurs in the remote device.
Possible Causes
The remote device is abnormal.
Solution
Restart the remote device and initiate the session again.
Error Message
The playback position falls behind the live window.
Description
The loaded progress exceeds the total progress of the cast video.
Possible Causes
The current progress exceeds the total progress.
Solution
Check and adjust the progress to avoid exceeding the total.
Error Message
The process of cast control times out.
Description
The loading of the casting controller times out.
Possible Causes
The loading of the casting controller times out.
Solution
The current session times out. Initiate a new session.
Error Message
The runtime check failed.
Description
The runtime check fails.
Possible Causes
The application does not comply with the player's API requirements (for example, passing invalid parameters).
The player is in an invalid state.
Solution
Verify the input parameters according to the API requirements to prevent exceptions.
Error Message
Cross-device data transmission is locked.
Description
Cross-device data transmission is locked.
Possible Causes
The transmission is locked.
Solution
The remote device does not respond. Restart the remote device and initiate the session again.
Error Message
The specified seek mode is not supported.
Description
The specified seek mode is not supported.
Possible Causes
The device does not support the specified seek mode.
Solution
Verify the seek mode.
Error Message
The position to seek to is out of the range of the media asset or the specified seek mode is not supported.
Description
The position to seek to is out of range.
Possible Causes
The position to seek to is out of the audio/video resource progress range or the specified seek mode is unknown.
Solution
Verify the position to seek to and the seek mode.
Error Message
The specified playback mode is not supported.
Description
The specified playback mode is not supported.
Possible Causes
The specified playback mode is not supported.
Solution
Verify the playback mode.
Error Message
The specified playback speed is not supported.
Description
The specified playback speed is not supported.
Possible Causes
The current playback speed is not supported by AVTransport.
Solution
Verify the playback speed.
Error Message
The action failed because either the media source device or the media sink device has been revoked.
Description
The device is revoked.
Possible Causes
The local device or the remote device has been revoked.
Solution
Restart the remote device and initiate the session again.
Error Message
The parameter is invalid, for example, the url is illegal to play.
Description
An input parameter is invalid.
Possible Causes
An invalid parameter is passed in.
Solution
Verify the input parameters according to the API requirements to prevent exceptions.
Error Message
Allocation of memory failed.
Description
Memory allocation fails.
Possible Causes
The memory is insufficient.
The system cannot allocate memory.
Solution
The device memory is insufficient. Restart the device and then initiate the session again.
Error Message
Operation is not allowed.
Description
The operation is not allowed.
Possible Causes
The operation cannot be performed in the current device status.
Solution
Check the status of the remote device and perform the operation when the remote device is running.
Error Message
An unspecified input/output error occurs.
Description
An unknown I/O error occurs.
Possible Causes
Solution
Check the parameters sent by the local device, restart the abnormal remote device, and initiate a session again.
Error Message
Network connection failure.
Description
Network connection fails.
Possible Causes
Network exceptions occur, or the peer network is disconnected.
Solution
Reconnect to the network and then initiate the session again.
Error Message
Network timeout.
Description
The network times out. As a result, it takes a long time for the server to complete the request.
Possible Causes
The network is abnormal, the peer network is disconnected, or the network environment is poor.
Solution
Reconnect to the network and then initiate the session again.
Error Message
Invalid "Content-Type" HTTP header.
Description
The Content-Type HTTP header is invalid.
Possible Causes
The response from the remote device does not comply with the HTTP protocol standard and fails to be parsed.
Solution
Reconnect to the network and then initiate the session again.
Error Message
The HTTP server returns an unexpected HTTP response status code.
Description
The HTTP server returns an unexpected HTTP response status code.
Possible Causes
The remote device is abnormal and returns an HTTP error code.
Solution
Reconnect to the network and then initiate the session again.
Error Message
The file does not exist.
Description
The file does not exist.
Possible Causes
The file to be played is not found on the network.
Solution
Check whether the resource is available. If not, replace the resource and initiate the session again.
Error Message
No permission is granted to perform the IO operation.
Description
You do not have the permission to perform I/O operations.
Possible Causes
The file read permission is not granted.
Solution
Grant the file read permission.
Error Message
Access to cleartext HTTP traffic is not allowed by the app's network security configuration.
Description
The player attempts to access plaintext HTTP streams. This operation is not allowed by the network security configuration of the application.
Possible Causes
Network security access permission is insufficient.
Solution
Reconnect to the network and then initiate the session again.
Error Message
Reading data out of the data bound.
Description
The data to read exceeds the data range.
Possible Causes
The data to read exceeds the data range.
Solution
Check whether the resource is available. If not, replace the resource and initiate the session again.
Error Message
The media does not contain any contents that can be played.
Description
The media asset does not contain any playable content.
Possible Causes
There is no playable content in the media asset.
Solution
Check whether the resource is available. If not, replace the resource and initiate the session again.
Error Message
The media cannot be read.
Description
Media assets cannot be read.
Possible Causes
The file fails to be read, possibly because the file is damaged.
Solution
Verify file integrity.
Error Message
This resource is already in use.
Description
The resource is already in use.
Possible Causes
The resource is already in use.
Solution
Check whether the resource is available. If not, replace the resource and initiate the session again.
Error Message
The content using the validity interval has expired.
Description
The content has expired.
Possible Causes
The content has expired.
Solution
Check whether the resource is available. If not, replace the resource and initiate the session again.
Error Message
Using the requested content to play is not allowed.
Description
Using the requested content is not allowed.
Possible Causes
Using the requested content is not allowed.
Solution
Check whether the resource is available. If not, replace the resource and initiate the session again.
Error Message
The use of the allowed content cannot be verified.
Description
The allowed content cannot be verified.
Possible Causes
The allowed content cannot be verified.
Solution
Check whether the resource is available. If not, replace the resource and initiate the session again.
Error Message
The number of times this content has been used as requested has reached the maximum allowed number of uses.
Description
The number of times that the content is requested has reached the maximum allowed.
Possible Causes
The number of content usages has reached the authorization limit.
Solution
Control the frequency of queries and commands.
Error Message
An error occurs when sending packet from source device to sink device.
Description
The local device fails to send resource packages to the remote device.
Possible Causes
The network is abnormal, the peer device is abnormal, or the peer device cannot receive messages.
Solution
Reconnect to the network and then initiate the session again.
Error Message
Unspecified error related to content parsing.
Description
Unknown parsing error.
Possible Causes
The message from the peer device does not comply with the standard or fails to be parsed.
Solution
Restart the remote device and initiate the session again.
Error Message
Parsing error associated with media container format bit streams.
Description
An error occurs when the bit stream of the media container format is parsed.
Possible Causes
The MIME type of the resource to play is not supported by AVTransport.
Solution
Use another type of resource and initiate the session again.
Error Message
Parsing error associated with the media manifest.
Description
The media manifest fails to be parsed.
Possible Causes
The device does not support the current media storage format.
Solution
Check whether the resource format is correct. If not, change the resource format and initiate the session again.
Error Message
An error occurs when attempting to extract a file with an unsupported media container format or an unsupported media container feature.
Description
The media format is not supported.
Possible Causes
The device does not support the current media storage format.
Solution
Check whether the resource format is correct. If not, change the resource format and initiate the session again.
Error Message
Unsupported feature in the media manifest.
Description
This feature is not supported in the media manifest.
Possible Causes
The device does not support the current media storage format.
Solution
Check whether the resource format is correct. If not, change the resource format and initiate the session again.
Error Message
Unspecified decoding error.
Description
Unknown decoding error.
Possible Causes
The decoder of the remote device is abnormal.
Solution
Restart the remote device and initiate the session again.
Error Message
Decoder initialization failed.
Description
Initializing the decoder fails.
Possible Causes
The decoder of the remote device fails to be initialized.
Solution
Restart the remote device and initiate the session again.
Error Message
Decoder query failed.
Description
Querying the decoder fails.
Possible Causes
When the device or software attempts to play or process a media file, the device or software cannot correctly decode the data in the file.
Solution
Check the file format and ensure that the file format is supported.
Error Message
Decoding the media samples failed.
Description
Decoding the media sample fails.
Possible Causes
The file type you are trying to access is not supported by the device.
Solution
Check the file format and ensure that the file format is supported.
Error Message
The format of the content to decode exceeds the capabilities of the device.
Description
The decoding capability of the device does not meet the requirements.
Possible Causes
The file type you are trying to access is not supported by the device.
Solution
Check the file format and ensure that the file format is supported.
Error Message
The format of the content to decode is not supported.
Description
Decoding fails because the content format is not supported.
Possible Causes
The file type you are trying to access is not supported by the device.
Solution
Check the file format and ensure that the file format is supported.
Error Message
Initializing the audio renderer failed.
Description
Initializing the audio renderer fails.
Possible Causes
The audio renderer of the remote device fails to be initialized.
Solution
Restart the remote device and initiate the session again.
Error Message
The audio renderer fails to write data.
Description
The audio renderer fails to write data.
Possible Causes
The audio renderer of the remote device cannot write data.
Solution
Restart the remote device and initiate the session again.
Error Message
Unspecified error related to DRM.
Description
An unknown DRM error occurs.
Possible Causes
The DRM of the remote device is abnormal.
Solution
Update the DRM component and initiate the session again.
Error Message
The chosen DRM protection scheme is not supported by the device.
Description
The device does not support the DRM solution selected.
Possible Causes
An unknown DRM error occurs.
Solution
Update the DRM component and initiate the session again.
Error Message
Device provisioning failed.
Description
An error occurs during device provisioning.
Possible Causes
The DRM-protected content cannot be played.
Solution
Check the DRM format of the file and ensure that the DRM format is supported.
Error Message
The DRM-protected content to play is incompatible.
Description
The DRM-protected content to play is incompatible.
Possible Causes
The DRM-protected content cannot be played.
Solution
Update the DRM component and initiate the session again.
Error Message
Failed to obtain a license.
Description
The license fails to be obtained.
Possible Causes
The DRM license is not complied with.
Solution
Check the DRM format of the file and ensure that the DRM format is supported.
Error Message
The operation is disallowed by the license policy.
Description
The operation is not allowed by the license policy.
Possible Causes
The DRM license is not complied with.
Solution
Check the DRM format of the file and ensure that the DRM format is supported.
Error Message
An error occurs in the DRM system.
Description
The DRM system is faulty.
Possible Causes
The DRM of the remote device is abnormal.
Solution
Check the DRM format of the file and ensure that the DRM format is supported.
Error Message
The device has revoked DRM privileges.
Description
The DRM privileges have been revoked from the device.
Possible Causes
The DRM privileges of the device are disabled or revoked. As a result, DRM-protected content cannot be played or processed.
Solution
Update the DRM component and initiate the session again.
Error Message
The DRM license being loaded into the open DRM session has expired.
Description
An expired DRM license is loaded to an open DRM session.
Possible Causes
The DRM license has expired.
Solution
Update the DRM component and initiate the session again.
Error Message
An error occurs when the DRM processes the key response.
Description
An error occurs when the DRM processes the key response.
Possible Causes
An error occurs when the DRM processes the key response.
Solution
Update the DRM component and initiate the session again.