• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# AVPlayerCallback
2<!--Kit: Media Kit-->
3<!--Subsystem: Multimedia-->
4<!--Owner: @xushubo; @chennotfound-->
5<!--Designer: @dongyu_dy-->
6<!--Tester: @xchaosioda-->
7<!--Adviser: @zengyawen-->
8
9## Overview
10
11The struct contains the set of the **OH_AVPlayerOnInfo** and **OH_AVPlayerOnError** 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.
12
13**Since**: 11
14
15**Deprecated from**: 12
16
17**Substitute**: [OH_AVPlayerOnInfoCallback](capi-avplayer-base-h.md#oh_avplayeroninfocallback) and [OH_AVPlayerOnErrorCallback](capi-avplayer-base-h.md#oh_avplayeronerrorcallback)
18
19**Related module**: [AVPlayer](capi-avplayer.md)
20
21**Header file**: [avplayer_base.h](capi-avplayer-base-h.md)
22
23## Summary
24
25### Member Variables
26
27| Name| Description|
28| -- | -- |
29| OH_AVPlayerOnInfo onInfo | Callback for AVPlayer process information. For details about the available options, see [OH_AVPlayerOnInfo](capi-avplayer-base-h.md#oh_avplayeroninfo).<br>**Since**: 11<br>**Deprecated from**: 12<br>**Substitute**: [OH_AVPlayerOnInfoCallback](capi-avplayer-base-h.md#oh_avplayeroninfocallback)|
30| OH_AVPlayerOnError onError | Callback for AVPlayer error information. For details about the available options, see [OH_AVPlayerOnError](capi-avplayer-base-h.md#oh_avplayeronerror).<br>**Since**: 11<br>**Deprecated from**: 12<br>**Substitute**: [OH_AVPlayerOnErrorCallback](capi-avplayer-base-h.md#oh_avplayeronerrorcallback)|
31