AgoraMediaRecorderConfiguration
音视频流录制配置。
__attribute__((visibility("default"))) @interface AgoraMediaRecorderConfiguration : NSObject @property(copy, nonatomic) NSString* _Nonnull storagePath; @property(assign, nonatomic) AgoraMediaRecorderContainerFormat containerFormat; @property(assign, nonatomic) AgoraMediaRecorderStreamType streamType; @property(assign, nonatomic) NSUInteger maxDurationMs; @property(assign, nonatomic) NSUInteger recorderInfoUpdateInterval;
属性
- storagePath
- 录音文件在本地保存的绝对路径,需精确到文件名及格式。例如:
- iOS:
/App Sandbox/Library/Caches/example.mp4
注意: 请确保你指定的路径存在并且可写。 - iOS:
- containerFormat
- 录制文件的格式。详见 AgoraMediaRecorderContainerFormat。
- streamType
- 录制内容。详见 AgoraMediaRecorderStreamType。
- maxDurationMs
- 最大录制时长,单位为毫秒,默认值为 120000。
- recorderInfoUpdateInterval
- 录制信息更新间隔,单位为毫秒,取值范围为 [1000,10000]。SDK 会根据该值的设置触发 informationDidUpdated 回调,报告更新后的录制信息。