文档中心
互动直播 (Legacy)
API 参考
AgoraMediaRecorderConfiguration Class Reference
Objective-C API Reference for iOS/macOS
AgoraMediaRecorderConfiguration Class Reference
Inherits from |
NSObject |
Declared in |
AgoraObjects.h |
录音文件在本地保存的绝对路径,需精确到文件名及格式。
例如:/App Sandbox/Library/Caches/example.mp4
(iOS)或 /Library/Logs/example.mp4
(macOS)。
@property (copy, nonatomic) NSString *storagePath
Declared In
AgoraObjects.h
录制文件的格式。详见 AgoraMediaRecorderContainerFormat。
@property (assign, nonatomic) AgoraMediaRecorderContainerFormat containerFormat
Declared In
AgoraObjects.h
录制内容。详见 AgoraMediaRecorderStreamType。
@property (assign, nonatomic) AgoraMediaRecorderStreamType streamType
Declared In
AgoraObjects.h
最大录制时长,单位为毫秒,默认值为 120000。
@property (assign, nonatomic) NSUInteger maxDurationMs
Declared In
AgoraObjects.h
录制信息更新间隔,单位为毫秒,取值范围为 [1000,10000]。SDK 会根据设置 recorderInfoUpdateInterval
值触发
informationDidUpdated 回调,报告更新后的录制信息。
@property (assign, nonatomic) NSUInteger recorderInfoUpdateInterval
Declared In
AgoraObjects.h