OHOS::Media::RecorderCallback
Overview
Related Modules:
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. |
