1# OH_AVCodecAsyncCallback 2 3## Overview 4 5The struct defines all the asynchronous callback function pointers of an OH_AVCodec instance. To ensure the normal running of OH_AVCodec, you must register the instance of this struct with the OH_AVCodec instance and process the information reported by the callback function. 6 7**Since**: 9 8 9**Deprecated from**: 11 10 11**Substitute**: [OH_AVCodecCallback](capi-codecbase-oh-avcodeccallback.md) 12 13**Related module**: [CodecBase](capi-codecbase.md) 14 15**Header file**: [native_avcodec_base.h](capi-native-avcodec-base-h.md) 16 17## Summary 18 19### Member Variables 20 21| Name| Description| 22| -- | -- | 23| [OH_AVCodecOnError](capi-native-avcodec-base-h.md#oh_avcodeconerror) onError | Callback used to report a codec operation error.| 24| [OH_AVCodecOnStreamChanged](capi-native-avcodec-base-h.md#oh_avcodeconstreamchanged) onStreamChanged | Callback used to report a codec stream change.| 25| [OH_AVCodecOnNeedInputData](capi-native-avcodec-base-h.md#oh_avcodeconneedinputdata) onNeedInputData | Callback used to report input data required.| 26| [OH_AVCodecOnNewOutputData](capi-native-avcodec-base-h.md#oh_avcodeconnewoutputdata) onNewOutputData | Callback used to report output data generated.| 27