1e41f4b71Sopenharmony_ci# AVPlayerCallback
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Overview
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciThe 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.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Multimedia.Media.AVPlayer
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**Since**: 11
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**Deprecated from**: 12
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Substitute**: [OH_AVPlayerOnInfoCallback](_a_v_player.md#oh_avplayeroninfocallback) and [OH_AVPlayerOnErrorCallback](_a_v_player.md#oh_avplayeronerrorcallback)
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci**Related module**: [AVPlayer](_a_v_player.md)
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci## Summary
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci### Member Variables
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci| Name| Description| 
25e41f4b71Sopenharmony_ci| -------- | -------- |
26e41f4b71Sopenharmony_ci| [onInfo](_a_v_player.md#oninfo) | AVPlayer process information. For details, see [OH_AVPlayerOnInfo](_a_v_player.md#oh_avplayeroninfo).| 
27e41f4b71Sopenharmony_ci| [onError](_a_v_player.md#onerror) | AVPlayer error information. For details, see [OH_AVPlayerOnError](_a_v_player.md#oh_avplayeronerror).| 
28