Recorder
|
int32_t SetVideoSource(VideoSourceType source, int32_t &sourceId)
|
Sets a video source for recording.
|
Recorder
|
int32_t SetVideoEncoder(int32_t sourceId, VideoCodecFormat encoder)
|
Sets a video encoder for recording.
|
Recorder
|
int32_t SetVideoSize(int32_t sourceId, int32_t width, int32_t height)
|
Sets the width and height of the video to record.
|
Recorder
|
int32_t SetVideoFrameRate(int32_t sourceId, int32_t frameRate)
|
Sets the frame rate of the video to record.
|
Recorder
|
int32_t SetVideoEncodingBitRate(int32_t sourceId, int32_t rate)
|
Sets the encoding bit rate of the video to record.
|
Recorder
|
int32_t SetCaptureRate(int32_t sourceId, double fps)
|
Sets the video capture rate.
|
Recorder
|
std::shared_ptr<OHOS::Surface> GetSurface(int32_t sourceId);
|
Obtains the surface of the video source.
|
Recorder
|
int32_t SetAudioSource(AudioSourceType source, int32_t &sourceId)
|
Sets an audio source for recording.
|
Recorder
|
int32_t SetAudioEncoder(int32_t sourceId, AudioCodecFormat encoder)
|
Sets an audio encoder for recording.
|
Recorder
|
int32_t SetAudioSampleRate(int32_t sourceId, int32_t rate)
|
Sets the audio sampling rate for recording.
|
Recorder
|
int32_t SetAudioChannels(int32_t sourceId, int32_t num)
|
Sets the number of audio channels for recording.
|
Recorder
|
int32_t SetAudioEncodingBitRate(int32_t sourceId, int32_t bitRate)
|
Sets the encoding bit rate of the audio to record.
|
Recorder
|
int32_t SetMaxDuration(int32_t duration)
|
Sets the maximum duration of an output file, in seconds.
|
Recorder
|
int32_t SetOutputFormat(OutputFormatType format)
|
Sets the output file format.
|
Recorder
|
int32_t SetOutputPath(const string &path);
|
Sets the output file path.
|
Recorder
|
int32_t SetOutputFile(int32_t fd)
|
Sets the file descriptor of the output file.
|
Recorder
|
int32_t SetNextOutputFile(int32_t fd);
|
Sets the file descriptor of the next output file.
|
Recorder
|
int32_t SetMaxFileSize(int64_t size)
|
Sets the maximum size of an output file, in bytes.
|
Recorder
|
int32_t SetRecorderCallback(const std::shared_ptr<RecorderCallback> &callback)
|
Registers a recording listener.
|
Recorder
|
int32_t Prepare()
|
Prepares for recording.
|
Recorder
|
int32_t Start()
|
Starts recording.
|
Recorder
|
int32_t Pause()
|
Pauses recording.
|
Recorder
|
int32_t Resume()
|
Resumes recording.
|
Recorder
|
int32_t Stop(bool block)
|
Stops recording.
|
Recorder
|
int32_t Reset();
|
Resets recording.
|
Recorder
|
int32_t Release()
|
Releases recording resources.
|
Recorder
|
int32_t SetFileSplitDuration(FileSplitType type, int64_t timestamp, uint32_t duration)
|
Sets the duration to split an output file.
|
Recorder
|
int32_t SetParameter(int32_t sourceId, const Format &format)
|
Sets an extended parameter for recording.
|