ZIM Audio SDK error codes
We recommend that you use the ZIM Audio SDK of the latest version for better experience.
Overview
This topic describes solutions to network and media errors that cannot be automatically fixed in the ZIM Audio SDK of the latest version.
If the errorCode
field exists in the return result after an API is called, the API call is abnormal. The sample code is as follows:
Untitled
- (void)onError:(ZIMAudioError *)errorInfo{
NSLog(@"errorCode%lu,%@",(unsigned long)errorInfo.code,errorInfo.message);
}
1
Error codes
Error code | Description | Solution |
---|---|---|
0 | Success. | None. |
1 | Unknown error. | Contact ZEGOCLOUD technical support for troubleshooting. |
2 | Other APIs of the ZIM Audio SDK are called before the SDK is initialized. | Initialize the SDK. |
3 | Invalid path. | Make sure that the input parameters are valid. |
4 | Invalid parameter. | Make sure that the input parameters are valid. |
5 | The target file cannot be opened, possibly because the file format or content is invalid. | Make sure that the file format and content is valid. |
6 | Insufficient space for file writing. | Make sure that the disk has sufficient space to use the SDK. |
7 | No read/write permission on the path. | Check the permission configuration. |
8 | I/O error. | Contact ZEGOCLOUD technical support for troubleshooting. |
11 | Encoding error. | Contact ZEGOCLOUD technical support for troubleshooting. |
12 | Decoding error. | Contact ZEGOCLOUD technical support for troubleshooting. |
13 | API call error. | Contact ZEGOCLOUD technical support for troubleshooting. |
14 | Internal logic error. | Contact ZEGOCLOUD technical support for troubleshooting. |
15 | Internal log module error. | Contact ZEGOCLOUD technical support for troubleshooting. |
31 | General recorder error. | Contact ZEGOCLOUD technical support for troubleshooting. |
32 | Recording duration too short. | Record again after the onRecorderStarted callback is received. |
51 | General player error. | Contact ZEGOCLOUD technical support for troubleshooting. |
81 | Invalid license. | Make sure that the license is valid. |
82 | Expired license. | Apply for another license and re-initialize the SDK. |
83 | Features are unavailable because the service is not activated. | Contact ZEGOCLOUD technical support to activate the service. |