This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Failed to execute the function.
Description
This error code is reported if a service fails to be invoked due to an internal error.
Possible Causes
An error occurred during internal invocation.
Solution
Call the API again.
Error Message
Failed to obtain the service.
Description
The service fails to start, and the service cannot be accessed.
Possible Causes
The service is not started or fails to start.
Solution
Make sure the service is started and obtain the service again.
Error Message
Failed to get data from the cloud.
Description
This error code is reported if the attempt to retrieve data from the cloud fails because the network is abnormal.
Possible Causes
The network connection is abnormal, or the network request returns an error.
Solution
Ensure that the network connection is normal and call the API again with correct parameters.
Error Message
A login account is required.
Description
This error code is reported if a login account is required for service invocation.
Possible Causes
No login account is available on the device.
Solution
Use the correct account to log in to the device and call the API again.
Error Message
The device name contains non-compliant content.
Description
This error code is reported if device name contains illegitimate information.
Possible Causes
The new device name contains unlawful information.
Solution
Ensure that the device name complies with laws and regulations.
Error Message
Only one stream can be created for the current session.
Description
This error code is reported if a session for which a transport stream is created already exists.
Possible Causes
This error code is reported if a session for which a transport stream is created already has a transport stream.
Solution
Ensure that the task of the previous transport stream is complete. Use destroyStream to close the transport stream before creating a new one.
Error Message
The stream at the receive end is not started.
Description
This error code is reported if the receive end of transport streams is not started.
Possible Causes
The receive end is not started.
Solution
Start transmission of transport streams after the receive end is started.
Error Message
Bitrate not supported.
Description
This error code is reported if the bit rate is not supported.
Possible Causes
This error code is reported if the configured bit rate does not match the bit rate supported by the device.
Solution
Select an appropriate bit rate based on network conditions and requirements.
Error Message
Color space not supported.
Description
This error code is reported if the color space is not supported.
Possible Causes
This error code is reported if the color space output type is set to OH_COLORSPACE_BT2020_HLG_LIMIT but the actual output type is not the specified type.
Solution
Ensure that the color space output type is within the supported range.