AliyunPublishManager
Deprecated
@interface AliyunPublishManager : NSObject
导出合成与上传管理器
已废弃,请使用AliyunVodPublishManager代替
-
导出回调
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunIExporterCallback> exportCallback;
-
上传回调
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunIUploadCallback> uploadCallback;
-
导出视频路径
Declaration
Objective-C
@property (nonatomic, copy) NSString *outputPath;
-
上传是否转码,默认值YES
Declaration
Objective-C
@property (nonatomic) BOOL transcode;
-
上传超时重试次数,默认值INT_MAX
Declaration
Objective-C
@property (nonatomic) uint32_t maxRetryCount;
-
上传超时重试间隔,默认30秒
Declaration
Objective-C
@property (nonatomic) NSTimeInterval timeoutIntervalForRequest;
-
上传是否开启日志上报,默认开启
Declaration
Objective-C
@property (nonatomic) BOOL reportEnabled;
-
设置水印
Declaration
Objective-C
- (int)setWaterMark:(AliyunEffectImage *)waterMark;
Parameters
waterMark
水印
-
设置片尾水印
Declaration
Objective-C
- (int)setTailWaterMark:(AliyunEffectImage *)waterMark;
Parameters
waterMark
片尾水印
-
Deprecated
use setTailWaterMark:(AliyunEffectImage *)waterMark
设置片尾水印
Declaration
Objective-C
- (void)setTailWaterMark:(UIImage *)image frame:(CGRect)frame duration:(CGFloat)duration;
Parameters
image
水印图片
frame
水印位置
duration
水印时长
-
设置退后台是否取消导出合成
默认值NO:退后台暂停合成,回到前台继续合成,YES:退后台取消合成
Declaration
Objective-C
- (void)setCancelExportInResignActive:(BOOL)flag;
Parameters
flag
flag
-
合成视频
Declaration
Objective-C
- (BOOL)exportWithTaskPath:(NSString *)taskPath outputPath:(NSString *)outputPath;
Parameters
taskPath
taskPath
outputPath
输出视频路径
Return Value
接口调用是否成功
-
取消合成
Declaration
Objective-C
- (void)cancelExport;
-
上传视频
Declaration
Objective-C
- (BOOL)uploadWithImagePath:(NSString *)imagePath svideoInfo:(AliyunUploadSVideoInfo *)svideoInfo accessKeyId:(NSString *)accessKeyId accessKeySecret:(NSString *)accessKeySecret accessToken:(NSString *)accessToken;
Parameters
imagePath
视频缩略图
svideoInfo
视频描述信息
accessKeyId
服务端返回的临时accessKeyId
accessKeySecret
服务端返回的临时accessKeySecret
accessToken
服务端返回的临时accessToken
Return Value
接口调用是否成功
-
刷新sts
Declaration
Objective-C
- (void)refreshWithAccessKeyId:(NSString *)accessKeyId accessKeySecret:(NSString *)accessKeySecret accessToken:(NSString *)accessToken expireTime:(NSString *)expireTime;
Parameters
accessKeyId
服务端返回的临时accessKeyId
accessKeySecret
服务端返回的临时accessKeySecret
accessToken
服务端返回的临时accessToken
expireTime
服务端返回的过期时间
-
取消上传
Declaration
Objective-C
- (void)cancelUpload;