1# native_averrors.h 2 3## Overview 4 5The file declares the error codes used by the media framework. 6 7**File to include**: <multimedia/player_framework/native_averrors.h> 8 9**Library**: libnative_media_core.so 10 11**System capability**: SystemCapability.Multimedia.Media.Core 12 13**Since**: 9 14 15**Related module**: [Core](capi-core.md) 16 17## Summary 18 19### Enums 20 21| Name| typedef Keyword| Description| 22| -- | -- | -- | 23| [OH_AVErrCode](#oh_averrcode) | OH_AVErrCode | Enumerates the error codes used by the media framework.| 24 25## Enum Description 26 27### OH_AVErrCode 28 29``` 30enum OH_AVErrCode 31``` 32 33**Description** 34 35Enumerates the error codes used by the media framework. 36 37**System capability**: SystemCapability.Multimedia.Media.Core 38 39**Since**: 9 40 41| Value| Description| 42| -- | -- | 43| AV_ERR_OK = 0 | Operation successful.| 44| AV_ERR_NO_MEMORY = 1 | No memory.| 45| AV_ERR_OPERATE_NOT_PERMIT = 2 | Operation not allowed.| 46| AV_ERR_INVALID_VAL = 3 | Invalid value.| 47| AV_ERR_IO = 4 | I/O error.| 48| AV_ERR_TIMEOUT = 5 | Timeout.| 49| AV_ERR_UNKNOWN = 6 | Unknown error.| 50| AV_ERR_SERVICE_DIED = 7 | Unavailable service.| 51| AV_ERR_INVALID_STATE = 8 | Unsupported operation in this state.| 52| AV_ERR_UNSUPPORT = 9 | Unsupported API.| 53| AV_ERR_INPUT_DATA_ERROR = 10 | Incorrect input data.<br>**Since**: 12| 54| AV_ERR_UNSUPPORTED_FORMAT = 11 | Unsupported format.<br>**Since**: 18| 55| AV_ERR_EXTEND_START = 100 | Initial value for extended error codes.| 56| AV_ERR_DRM_BASE = 200 | DRM start error code.<br>**Since**: 12| 57| AV_ERR_DRM_DECRYPT_FAILED = 201 | DRM decryption fails.<br>**Since**: 12| 58| AV_ERR_VIDEO_BASE = 300 | Video start error code.<br>**Since**: 12| 59| AV_ERR_VIDEO_UNSUPPORTED_COLOR_SPACE_CONVERSION = 301 | Color Space Conversion (CSC) is not supported.<br>**Since**: 12| 60| AV_ERR_IO_CANNOT_FIND_HOST = 5411001 | The host is not found. The possible cause is that the server address is incorrect.<br>**Since**: 14| 61| AV_ERR_IO_CONNECTION_TIMEOUT = 5411002 | Network connection times out.<br>**Since**: 14| 62| AV_ERR_IO_NETWORK_ABNORMAL = 5411003 | The connection fails due to a network error.<br>**Since**: 14| 63| AV_ERR_IO_NETWORK_UNAVAILABLE = 5411004 | The connection fails due to network unavailability.<br>**Since**: 14| 64| AV_ERR_IO_NO_PERMISSION = 5411005 | No network access permission.<br>**Since**: 14| 65| AV_ERR_IO_NETWORK_ACCESS_DENIED = 5411006 | The client request parameter is incorrect or exceeds the processing capability.<br>**Since**: 14| 66| AV_ERR_IO_RESOURCE_NOT_FOUND = 5411007 | No network resource is available.<br>**Since**: 14| 67| AV_ERR_IO_SSL_CLIENT_CERT_NEEDED = 5411008 | Server authentication fails because the client certificate is not carried, is invalid, or has expired.<br>**Since**: 14| 68| AV_ERR_IO_SSL_CONNECT_FAIL = 5411009 | Client authentication fails because the server certificate is not carried, is invalid, or has expired.<br>**Since**: 14| 69| AV_ERR_IO_SSL_SERVER_CERT_UNTRUSTED = 5411010 | The SSL server certificate is untrusted.<br>**Since**: 14| 70| AV_ERR_IO_UNSUPPORTED_REQUEST = 5411011 | The network protocol does not support the request.<br>**Since**: 14| 71| AV_ERR_STREAM_CHANGED = 5410005 | The stream format changes in synchronous mode. You can call [OH_VideoEncoder_GetOutputDescription](_video_encoder.md#oh_videoencoder_getoutputdescription) (video encoding), [OH_VideoDecoder_GetOutputDescription](_video_decoder.md#oh_videodecoder_getoutputdescription) (video decoding), or [OH_AudioCodec_GetOutputDescription](_audio_codec.md#oh_audiocodec_getoutputdescription) (audio encoding and decoding) to obtain the new stream configuration.<br>**Since**: 20| 72| AV_ERR_TRY_AGAIN_LATER = 5410006 | The temporary buffer query fails in synchronous mode. You are advised to wait for a short period of time and try again.<br>**Since**: 20| 73