AliyunPublishManager
Deprecated
@interface AliyunPublishManager : NSObject
* A class that defines publish managers.
Deprecated. Replaced by AliyunVodPublishManager.
-
* The export callback.
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunIExporterCallback> exportCallback; -
* The upload callback.
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunIUploadCallback> uploadCallback; -
* The video output path.
Declaration
Objective-C
@property (nonatomic, copy) NSString *outputPath; -
* Whether to enable transcoding. Default is YES.
Declaration
Objective-C
@property (nonatomic) BOOL transcode; -
* The maximum number of retries. Default is INT_MAX.
Declaration
Objective-C
@property (nonatomic) uint32_t maxRetryCount; -
* The time interval between retries. Default is 30 seconds.
Declaration
Objective-C
@property (nonatomic) NSTimeInterval timeoutIntervalForRequest; -
* Enable upload log report or not. Default is true.
Declaration
Objective-C
@property (nonatomic) BOOL reportEnabled; -
* Sets a watermark.
Declaration
Objective-C
- (int)setWaterMark:(AliyunEffectImage *)waterMark;Parameters
waterMarkThe watermark image.
-
* Sets a watermark to the end of the video.
Declaration
Objective-C
- (int)setTailWaterMark:(AliyunEffectImage *)waterMark;Parameters
waterMarkThe watermark image.
-
Deprecated
use setTailWaterMark:(AliyunEffectImage *)waterMark
* Sets a watermark to the end of the video.
Declaration
Objective-C
- (void)setTailWaterMark:(UIImage *)image frame:(CGRect)frame duration:(CGFloat)duration;Parameters
imageThe watermark image.
frameThe frame that contains the watermark.
durationThe display duration of the watermark.
-
* Sets whether to cancel exporting when the app is set to run in the background.
YES indicates cancel exporting. No indicates pause exporting. Default is NO.
Declaration
Objective-C
- (void)setCancelExportInResignActive:(BOOL)flag;Parameters
flag -
* Starts exporting.
Declaration
Objective-C
- (BOOL)exportWithTaskPath:(NSString *)taskPath outputPath:(NSString *)outputPath;Parameters
taskPathThe path of the taskPath folder.
outputPathThe video output path.
Return Value
Whether the invocation is successful.
-
* Cancels exporting.
Declaration
Objective-C
- (void)cancelExport; -
* Starts uploading.
Declaration
Objective-C
- (BOOL)uploadWithImagePath:(NSString *)imagePath svideoInfo:(AliyunUploadSVideoInfo *)svideoInfo accessKeyId:(NSString *)accessKeyId accessKeySecret:(NSString *)accessKeySecret accessToken:(NSString *)accessToken;Parameters
imagePathThe path of the thumbnail.
svideoInfoThe description of the video.
accessKeyIdThe temporary AccessKeyId returned by the server.
accessKeySecretThe temporary AccessKeySecret returned by the server.
accessTokenThe STS token returned by the server.
Return Value
Whether the invocation is successful.
-
* Updates the STS token.
Declaration
Objective-C
- (void)refreshWithAccessKeyId:(NSString *)accessKeyId accessKeySecret:(NSString *)accessKeySecret accessToken:(NSString *)accessToken expireTime:(NSString *)expireTime;Parameters
accessKeyIdThe temporary AccessKeyId returned by the server.
accessKeySecretThe temporary AccessKeySecret returned by the server.
accessTokenThe STS token returned by the server.
expireTimeThe token expiration time returned by the server.
-
* Cancels uploading.
Declaration
Objective-C
- (void)cancelUpload;
AliyunPublishManager Class Reference