AVRecorder enables media recording and supports configuration of recording parameters and real-time status callback. It is suitable for scenarios where audio and video need to be recorded and saved as files, such as video call recording and voice notes.
You can refer to the corresponding development guide and samples based on your development requirements.
System capability: SystemCapability.Multimedia.Media.AVRecorder
Since: 18
| Name | Description |
|---|---|
| avrecorder.h | Declares the AVRecorder APIs. AVRecorder enables media recording and supports audio and video data collection and recording, complete status management and callback listening, flexible encoder selection, and parameter configuration. It is suitable for scenarios where audio and video need to be recorded and saved as files. |
| avrecorder_base.h | Defines the struct, enums, and callbacks used by AVRecorder. |