OH_AVCodecAsyncCallback

Overview

The OH_AVCodecAsyncCallback 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.

@syscap SystemCapability.Multimedia.Media.CodecBase

Since

9

Related Modules

CodecBase

Summary

Member Variables

Name Description
onError Defines the callback used to report a codec operation error. For details, see OH_AVCodecOnError.
onStreamChanged Defines the callback used to report a codec stream change. For details, see OH_AVCodecOnStreamChanged.
onNeedInputData Defines the callback used to report input data required. For details, see OH_AVCodecOnNeedInputData.
onNeedOutputData Defines the callback used to report output data generated. For details, see OH_AVCodecOnNewOutputData.

Member Variable Description

onError

OH_AVCodecOnError onError

Description

Defines the callback used to report a codec operation error. For details, see OH_AVCodecOnError.

Since

9

onNeedInputData

OH_AVCodecOnNeedInputData onNeedInputData

Description

Defines the callback used to report input data required. For details, see OH_AVCodecOnNeedInputData.

Since

9

onNeedOutputData

OH_AVCodecOnNewOutputData onNeedOutputData

Description

Defines the callback used to report output data generated. For details, see OH_AVCodecOnNewOutputData.

Since

9

onStreamChanged

OH_AVCodecOnStreamChanged onStreamChanged

Description

Defines the callback used to report a codec stream change. For details, see OH_AVCodecOnStreamChanged.

Since

9