/** 设置视频输出最大时长 (单位是秒) 不限制则传0,默认不限制
*/
@property (nonatomic,assign)float outputVideoMaxDuration;
/** 设置视频输入最大时长 (单位是秒) 不限制则传0,默认不限制
*/
@property (nonatomic,assign)float inputVideoMaxDuration;
/** 是否禁用片尾
*/
@property (nonatomic,assign)bool endPicDisabled;
/** 片尾显示的用户名
*/
@property (nonatomic,copy)NSString * _Nullable endPicUserName;
/** 片尾显示时长(不包括淡入时长)
*/
@property (nonatomic,assign)float endPicDuration;
/** 片尾淡入时长
*/
@property (nonatomic,assign)float endPicFadeDuration;
/** 片尾显示的图片路径
*/
@property (nonatomic,copy)NSString * _Nullable endPicImagepath;
/** 是否禁用水印
*/
@property (nonatomic,assign)bool waterDisabled;
/** 文字水印
*/
@property (nonatomic,copy,nullable)NSString *waterText;
/** 文字水印颜色
*/
@property (nonatomic,copy,nullable)UIColor *waterTextColor;
/** 文字水印字体
*/
@property (nonatomic,copy,nullable)UIFont *waterTextFont;
/** 图片水印
*/
@property (nonatomic,strong,nullable)UIImage *waterImage;
/** 显示位置
*/
@property (nonatomic,assign) CNLiveWATERPOSITION waterPosition;
/** 设置视频输出码率 (单位是兆,默认是6M),建议设置大于1M,导出和压缩都生效
*/
@property (nonatomic,assign)float videoBitRate;
/**压缩视频分辨率(调用压缩视频接口生效)
*/
@property (nonatomic,assign)CGSize condenseVideoResolutionRatio;
代码示例
//编辑导出设置
_exportCfg = [[CNLiveExportConfiguration alloc] init];
_exportCfg.videoBitRate = VideoAverageBitRate;
_exportCfg.endPicDisabled = true;
_exportCfg.waterDisabled = false;