1 Star 0 Fork 4.9K

famoustang / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
OHOS-Media-RecorderCallback.md 5.01 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

OHOS::Media::RecorderCallback

Overview

Related Modules:

MultiMedia_Recorder

Description:

Provides listeners for recording errors and information events.

Since:

1.0

Version:

1.0

Summary

Public Types

Public Type Name

Description

RecorderInfoType : int32_t {   RECORDER_INFO_MAX_DURATION_APPROACHING = 0, RECORDER_INFO_MAX_FILESIZE_APPROACHING, RECORDER_INFO_MAX_DURATION_REACHED, RECORDER_INFO_MAX_FILESIZE_REACHED,   RECORDER_INFO_NEXT_OUTPUT_FILE_STARTED, RECORDER_INFO_FILE_SPLIT_FINISHED, RECORDER_INFO_FILE_START_TIME_MS }

Enumerates recording information types.

RecorderErrorType : int32_t { RECORDER_ERROR_UNKNOWN = 0 }

Enumerates recording error types.

Public Member Functions

Public Member Function Name

Description

OnError (int32_t errorType, int32_t errorCode)=0

virtual void 

Called when an error occurs during recording. This callback is used to report recording errors.

OnInfo (int32_t type, int32_t extra)=0

virtual void 

Called when an information event occurs during recording. This callback is used to report recording information.

1
https://gitee.com/famoustang/docs.git
git@gitee.com:famoustang/docs.git
famoustang
docs
docs
master

搜索帮助