ZegoAPIMediaRecordConfig Class Reference
Inherits from | NSObject |
---|---|
Declared in | zego-api-media-recorder-oc.h |
channelIndex
录制通道,详见 enum ZegoAPIMediaRecordChannelIndex
@property (nonatomic, assign) ZegoAPIMediaRecordChannelIndex channelIndex
Declared In
zego-api-media-recorder-oc.h
recordType
录制类型,详见 enum ZegoAPIMediaRecordType,如果填写的类型是 ZEGOAPI_MEDIA_RECORD_NONE,实际上 SDK 会采用 ZEGOAPI_MEDIA_RECORD_BOTH
@property (nonatomic, assign) ZegoAPIMediaRecordType recordType
Declared In
zego-api-media-recorder-oc.h
storagePath
录制文件存储路径,传入的路径需要包含文件名,存储的路径必须是应用有权限读写的,如果传入目录路径, - onMediaRecord:channelIndex:storagePath: 回调会返回写文件失败
@property (nonatomic, copy) NSString *storagePath
Declared In
zego-api-media-recorder-oc.h
enableStatusCallback
是否开启录制信息更新回调;YES: 开启,NO: 关闭;开启后,在已设置媒体录制代理后( - setMediaRecordDelegage:)会收到 - onRecordStatusUpdateFromChannel:index storagePath:duration:fileSize: 回调,默认 NO
@property (nonatomic, assign) bool enableStatusCallback
Declared In
zego-api-media-recorder-oc.h
interval
录制文件时状态回调的间隔,单位毫秒,有效范围:[1000,10000],默认 3000,此参数决定了 - onRecordStatusUpdateFromChannel:index storagePath:duration:fileSize: 的回调频率
@property (nonatomic, assign) int interval
Declared In
zego-api-media-recorder-oc.h
recordFormat
录制文件的文件格式,默认 ZEGOAPI_MEDIA_RECORD_FLV,详见 enum ZegoAPIMediaRecordFormat
@property (nonatomic, assign) ZegoAPIMediaRecordFormat recordFormat
Declared In
zego-api-media-recorder-oc.h
isFragment
录制文件是否分片,只在录制文件格式被设置为 MP4 格式时才有效,默认 NO,分片间隔为2s。进行分片能保证录制发生异常中断等问题时,已保存的录制文件可以正常播放;注意,这儿的分片是 SDK 内部处理录制文件的一个逻辑概念,而不是将录制文件按间隔时间分成多个小文件存储
@property (nonatomic, assign) bool isFragment
Declared In
zego-api-media-recorder-oc.h
config
录制文件配置,单个配置由 ‘;’ 隔开,例如:@“episode_id=XXX;"。目前支持的配置: "episode_id”: 仅支持 Mp4 文件格式
@property (nonatomic, copy) NSString *config
Declared In
zego-api-media-recorder-oc.h