The module provides the APIs for media playback. AVPlayer is designed based on a state machine and supports audio and video playback, playback control, playback rate adjustment, and volume adjustment.
You can refer to the corresponding development guide and samples based on your development requirements.
Since: 11
System capability: SystemCapability.Multimedia.Media.AVPlayer
| Name | Description |
|---|---|
| avplayer.h | Declares the AVPlayer APIs. You can use the native AVPlayer APIs to play a media asset. |
| avplayer_base.h | Declares the structs and enums of the AVPlayer. |