OHOS::Media::Recorder
Overview
Related Modules:
Description:
Provides functions for audio and video recording.
Since:
1.0
Version:
1.0
Summary
Public Member Functions
SetVideoSource (VideoSourceType source, int32_t &sourceId) |
|
SetVideoEncoder (int32_t sourceId, VideoCodecFormat encoder) |
|
SetVideoSize (int32_t sourceId, int32_t width, int32_t height) |
|
SetVideoFrameRate (int32_t sourceId, int32_t frameRate) |
|
SetVideoEncodingBitRate (int32_t sourceId, int32_t rate) |
|
SetCaptureRate (int32_t sourceId, double fps) |
|
GetSurface (int32_t sourceId) |
std::shared_ptr< OHOS::Surface > |
SetAudioSource (AudioSourceType source, int32_t &sourceId) |
|
SetAudioEncoder (int32_t sourceId, AudioCodecFormat encoder) |
|
SetAudioSampleRate (int32_t sourceId, int32_t rate) |
|
SetAudioChannels (int32_t sourceId, int32_t num) |
|
SetAudioEncodingBitRate (int32_t sourceId, int32_t bitRate) |
|
SetMaxDuration (int32_t duration) |
|
SetOutputFormat (OutputFormatType format) |
|
SetOutputPath (const string &path) |
|
SetOutputFile (int32_t fd) |
|
SetNextOutputFile (int32_t fd) |
|
SetMaxFileSize (int64_t size) |
|
SetRecorderCallback (const std::shared_ptr< RecorderCallback > &callback) |
|
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. |