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

    waterMark

    The watermark image.

  • * Sets a watermark to the end of the video.

    Declaration

    Objective-C

    - (int)setTailWaterMark:(AliyunEffectImage *)waterMark;

    Parameters

    waterMark

    The 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

    image

    The watermark image.

    frame

    The frame that contains the watermark.

    duration

    The 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

    taskPath

    The path of the taskPath folder.

    outputPath

    The 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

    imagePath

    The path of the thumbnail.

    svideoInfo

    The description of the video.

    accessKeyId

    The temporary AccessKeyId returned by the server.

    accessKeySecret

    The temporary AccessKeySecret returned by the server.

    accessToken

    The 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

    accessKeyId

    The temporary AccessKeyId returned by the server.

    accessKeySecret

    The temporary AccessKeySecret returned by the server.

    accessToken

    The STS token returned by the server.

    expireTime

    The token expiration time returned by the server.

  • * Cancels uploading.

    Declaration

    Objective-C

    - (void)cancelUpload;