AliyunVodPublishManager

@interface AliyunVodPublishManager : NSObject

* A class that defines publish managers.

  • * The export callback.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<AliyunIExporterCallback> _Nullable exportCallback;
  • * The upload callback.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<AliyunIVodUploadCallback> _Nullable uploadCallback;
  • * The upload state.

    Declaration

    Objective-C

    @property (nonatomic) AliyunVodUploadState uploadState;
  • * The path of the video to be uploaded.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull videotPath;
  • * The path of the image to be uploaded.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull imagePath;
  • * Enable upload log report or not. Default is true.

    Declaration

    Objective-C

    @property (nonatomic) BOOL reportEnabled;
  • * The partSize for upload with export. default 1MB; MinValue:100KB

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger uploadPartSize;

export

  • * Starts exporting.

    Declaration

    Objective-C

    - (int)exportWithTaskPath:(nonnull NSString *)taskPath
                   outputPath:(nonnull NSString *)outputPath;

    Parameters

    taskPath

    The path of the taskPath folder.

    outputPath

    The video output path.

    Return Value

    A return value.

  • * Start exporting and upload at the same time

    Declaration

    Objective-C

    - (int)exportWithTaskPath:(nonnull NSString *)taskPath
                   outputPath:(nonnull NSString *)outputPath
                uploadAddress:(nonnull NSString *)vodUploadAddress
                   uploadAuth:(nonnull NSString *)vodUploadAuth;

    Parameters

    taskPath

    The path of the taskPath folder.

    outputPath

    The video output path.

    vodUploadAddress

    The upload URL.

    vodUploadAuth

    The upload credential.

  • * Start exporting to outputPath and streamFile

    Declaration

    Objective-C

    - (nonnull UploadStreamFileInfo *)
        exportToStreamFileWithTaskPath:(nonnull NSString *)taskPath
                            outputPath:(nonnull NSString *)outputPath
                                 error:(NSError *_Nullable *_Nullable)error;

    Parameters

    taskPath

    The path of the taskPath folder.

    outputPath

    The video output path.

    outStreamFile

    The stream file for output

  • * Pauses exporting.

    Declaration

    Objective-C

    - (int)pauseExport;

    Return Value

    A return value.

  • * Resumes exporting.

    Declaration

    Objective-C

    - (int)resumeExport;

    Return Value

    A return value.

  • * Cancels exporting.

    Declaration

    Objective-C

    - (int)cancelExport;

    Return Value

    A return value.

upload

  • * Upload a streamFile

    Declaration

    Objective-C

    - (int)uploadStreamFile:(nonnull UploadStreamFileInfo *)streamFile
              uploadAddress:(nonnull NSString *)vodUploadAddress
                 uploadAuth:(nonnull NSString *)uploadAuth;

    Parameters

    streamFile

    vodUploadAddress

    The upload URL.

    vodUploadAuth

    The upload credential.

  • * Uploads a thumbnail.

    Declaration

    Objective-C

    - (int)uploadImageWithPath:(nonnull NSString *)imagePath
                 uploadAddress:(nonnull NSString *)vodUploadAddress
                    uploadAuth:(nonnull NSString *)vodUploadAuth;

    Parameters

    imagePath

    The path of the thumbnail image.

    vodUploadAddress

    The upload URL.

    vodUploadAuth

    The upload credential.

    Return Value

    A return value.

  • * Uploads a video.

    Declaration

    Objective-C

    - (int)uploadVideoWithPath:(nonnull NSString *)videoPath
                 uploadAddress:(nonnull NSString *)vodUploadAddress
                    uploadAuth:(nonnull NSString *)vodUploadAuth;

    Parameters

    videoPath

    The path of the video.

    vodUploadAddress

    The upload URL.

    vodUploadAuth

    The upload credential.

    Return Value

    A return value.

  • * Pauses uploading.

    Declaration

    Objective-C

    - (int)pauseUpload;

    Return Value

    A return value.

  • * Resumes uploading.

    Declaration

    Objective-C

    - (int)resumeUpload;

    Return Value

    A return value.

  • * Cancels uploading.

    Declaration

    Objective-C

    - (int)cancelUpload;

    Return Value

    A return value.

  • * Updates the upload credential.

    Declaration

    Objective-C

    - (int)refreshWithUploadAuth:(nonnull NSString *)vodUploadAuth;

    Parameters

    vodUploadAuth

    The new upload credential.

    Return Value

    A return value.