openharmony 鸿蒙 capi-native-averrors-h

2026-08-25 浏览 (1)

native_averrors.h

Overview

The file declares the error codes used by the media framework.

File to include: <multimedia/player_framework/native_averrors.h>

Library: libnative_media_core.so

System capability: SystemCapability.Multimedia.Media.Core

Since: 9

Related module: Core

Summary

Enums

Nametypedef KeywordDescription
OH_AVErrCodeOH_AVErrCodeEnumerates the error codes used by the media framework.

Enum Description

OH_AVErrCode

enum OH_AVErrCode

Description

Enumerates the error codes used by the media framework.

System capability: SystemCapability.Multimedia.Media.Core

Since: 9

ValueDescription
AV_ERR_OK = 0Operation successful.
AV_ERR_NO_MEMORY = 1No memory.
AV_ERR_OPERATE_NOT_PERMIT = 2Operation not allowed.
AV_ERR_INVALID_VAL = 3Invalid value.
AV_ERR_IO = 4I/O error.
AV_ERR_TIMEOUT = 5Timeout.
AV_ERR_UNKNOWN = 6Unknown error.
AV_ERR_SERVICE_DIED = 7Unavailable service.
AV_ERR_INVALID_STATE = 8Unsupported operation in this state.
AV_ERR_UNSUPPORT = 9Unsupported API.
AV_ERR_INPUT_DATA_ERROR = 10Incorrect input data.
Since: 12
AV_ERR_UNSUPPORTED_FORMAT = 11Unsupported format.
Since: 18
AV_ERR_EXTEND_START = 100Initial value for extended error codes.
AV_ERR_DRM_BASE = 200DRM start error code.
Since: 12
AV_ERR_DRM_DECRYPT_FAILED = 201DRM decryption fails.
Since: 12
AV_ERR_VIDEO_BASE = 300Video start error code.
Since: 12
AV_ERR_VIDEO_UNSUPPORTED_COLOR_SPACE_CONVERSION = 301Color Space Conversion (CSC) is not supported.
Since: 12
AV_ERR_IO_CANNOT_FIND_HOST = 5411001The host is not found. The possible cause is that the server address is incorrect.
Since: 14
AV_ERR_IO_CONNECTION_TIMEOUT = 5411002Network connection times out.
Since: 14
AV_ERR_IO_NETWORK_ABNORMAL = 5411003The connection fails due to a network error.
Since: 14
AV_ERR_IO_NETWORK_UNAVAILABLE = 5411004The connection fails due to network unavailability.
Since: 14
AV_ERR_IO_NO_PERMISSION = 5411005No network access permission.
Since: 14
AV_ERR_IO_NETWORK_ACCESS_DENIED = 5411006The client request parameter is incorrect or exceeds the processing capability.
Since: 14
AV_ERR_IO_RESOURCE_NOT_FOUND = 5411007No network resource is available.
Since: 14
AV_ERR_IO_SSL_CLIENT_CERT_NEEDED = 5411008Server authentication fails because the client certificate is not carried, is invalid, or has expired.
Since: 14
AV_ERR_IO_SSL_CONNECT_FAIL = 5411009Client authentication fails because the server certificate is not carried, is invalid, or has expired.
Since: 14
AV_ERR_IO_SSL_SERVER_CERT_UNTRUSTED = 5411010The SSL server certificate is untrusted.
Since: 14
AV_ERR_IO_UNSUPPORTED_REQUEST = 5411011The network protocol does not support the request.
Since: 14
AV_ERR_IO_CLEARTEXT_NOT_PERMITTED = 5411012HTTP plaintext access is not allowed.
Since: 23
AV_ERR_STREAM_CHANGED = 5410005The stream format changes in synchronous mode. You can call OH_VideoEncoder_GetOutputDescription (video encoding), OH_VideoDecoder_GetOutputDescription (video decoding), or OH_AudioCodec_GetOutputDescription (audio encoding and decoding) to obtain the new stream configuration.
Since: 20
AV_ERR_TRY_AGAIN_LATER = 5410006The temporary buffer query fails in synchronous mode. You are advised to wait for a short period of time and try again.
Since: 20
AV_ERR_SUPER_RESOLUTION_UNSUPPORTED = 5410003The media source or current device does not support super resolution.
Since: 23
AV_ERR_SUPER_RESOLUTION_NOT_ENABLED = 5410004Super resolution is not enabled.
Since: 23

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-native-avcodec-audiocodec-h

openharmony 鸿蒙 capi-avsource-oh-avsource

openharmony 鸿蒙 capi-native-cencinfo-h

openharmony 鸿蒙 capi-avmuxer

openharmony 鸿蒙 capi-multimedia-drm-oh-avcencinfo

openharmony 鸿蒙 capi-native-avdemuxer-h

openharmony 鸿蒙 capi-media-types-h

openharmony 鸿蒙 capi-native-audio-channel-layout-h

openharmony 鸿蒙 capi-native-avbuffer-info-h

openharmony 鸿蒙 capi-codecbase-oh-avcodecasynccallback

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/ALjZnyGl