AgoraMediaRecorderErrorCode Constants Reference
Declared in | AgoraEnumerates.h |
---|---|
Availability | v3.5.2 |
AgoraMediaRecorderErrorCode
录制状态出错的原因。
Definition
typedef NS_ENUM(NSInteger, AgoraMediaRecorderErrorCode ) {
AgoraMediaRecorderErrorCodeNoError = 0,
AgoraMediaRecorderErrorCodeWriteFailed = 1,
AgoraMediaRecorderErrorCodeNoStream = 2,
AgoraMediaRecorderErrorCodeOverMaxDuration = 3,
AgoraMediaRecorderErrorCodeConfigChange = 4,
AgoraMediaRecorderErrorCustomStreamDetected = 5,
};
Constants
AgoraMediaRecorderErrorCodeNoError
-
0: 一切正常。
Declared In
AgoraEnumerates.h
. AgoraMediaRecorderErrorCodeWriteFailed
-
1: 录制文件写入失败。
Declared In
AgoraEnumerates.h
. AgoraMediaRecorderErrorCodeNoStream
-
2: 没有可录制的音视频流或者录制的音视频流中断超过 5 秒。
Declared In
AgoraEnumerates.h
. AgoraMediaRecorderErrorCodeOverMaxDuration
-
3: 录制时长超出上限。
Declared In
AgoraEnumerates.h
. AgoraMediaRecorderErrorCodeConfigChange
-
4: 录制配置(
AgoraMediaRecorderConfiguration
)改变。Declared In
AgoraEnumerates.h
. AgoraMediaRecorderErrorCustomStreamDetected
-
5: 在通信场景下,捕捉到 3.0.0 之前版本的用户发送的音视频流。
Declared In
AgoraEnumerates.h
.
Availability
v3.5.2
Declared In
AgoraEnumerates.h