目录

AVPlayerCallback

Overview

The AVPlayerCallback struct contains the set of the OH_AVPlayerOnInfo and OH_AVPlayerOnInfo callback function pointers. To ensure the normal running of OH_AVPlayer, you must register the instance of this struct with the OH_AVPlayer instance and process the information reported by the callback functions.

System capability: SystemCapability.Multimedia.Media.AVPlayer

Since: 11

Deprecated from: 12

Substitute: OH_AVPlayerOnInfoCallback and OH_AVPlayerOnErrorCallback

Related module: AVPlayer

Summary

[h2]Member Variables

Name Description
onInfo AVPlayer process information. For details, see OH_AVPlayerOnInfo.
onError AVPlayer error information. For details, see OH_AVPlayerOnError.