## **Overview**
**Related Modules:**
[MultiMedia\_Recorder](MultiMedia_Recorder.md)
**Description:**
Provides functions for audio and video recording.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Public Member Functions
SetVideoSource (VideoSourceType source, int32_t &sourceId) | Sets a video source for recording. |
SetVideoEncoder (int32_t sourceId, VideoCodecFormat encoder) | Sets a video encoder for recording. |
SetVideoSize (int32_t sourceId, int32_t width, int32_t height) | Sets the width and height of the video to record. |
SetVideoFrameRate (int32_t sourceId, int32_t frameRate) | Sets the frame rate of the video to record. |
SetVideoEncodingBitRate (int32_t sourceId, int32_t rate) | Sets the encoding bit rate of the video to record. |
SetCaptureRate (int32_t sourceId, double fps) | |
GetSurface (int32_t sourceId) | std::shared_ptr< OHOS::Surface > Obtains the surface of the video source. |
SetAudioSource (AudioSourceType source, int32_t &sourceId) | Sets the audio source for recording. |
SetAudioEncoder (int32_t sourceId, AudioCodecFormat encoder) | Sets an audio encoder for recording. |
SetAudioSampleRate (int32_t sourceId, int32_t rate) | Sets the audio sampling rate for recording. |
SetAudioChannels (int32_t sourceId, int32_t num) | Sets the number of audio channels to record. |
SetAudioEncodingBitRate (int32_t sourceId, int32_t bitRate) | Sets the encoding bit rate of the audio to record. |
SetMaxDuration (int32_t duration) | Sets the maximum duration of a recorded file, in seconds. |
SetOutputFormat (OutputFormatType format) | |
SetOutputPath (const string &path) | |
SetOutputFile (int32_t fd) | Sets the file descriptor (FD) of the output file. |
SetNextOutputFile (int32_t fd) | Sets the FD of the next output file. |
SetMaxFileSize (int64_t size) | Sets the maximum size of a recorded file, in bytes. |
SetRecorderCallback (const std::shared_ptr< RecorderCallback > &callback) | Registers a recording listener. |
Prepare () | |
Start () | |
Pause () | |
Resume () | |
Stop (bool block) | |
Reset () | |
Release () | |
SetFileSplitDuration (FileSplitType type, int64_t timestamp, uint32_t duration) | |
SetParameter (int32_t sourceId, const Format &format) | Sets an extended parameter for recording, for example, RCORDER_PRE_CACHE_DURATION. |