AliyunVodPublishManager

@interface AliyunVodPublishManager : NSObject

发布管理器

  • 合成导出回调类

    Declaration

    Objective-C

    @property (nonatomic, weak) id<AliyunIExporterCallback> _Nullable exportCallback;
  • 上传回调类

    Declaration

    Objective-C

    @property (nonatomic, weak) id<AliyunIVodUploadCallback> _Nullable uploadCallback;
  • 当前上传状态

    Declaration

    Objective-C

    @property (nonatomic) AliyunVodUploadState uploadState;
  • 上传视频本地路径

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull videotPath;
  • 上传图片本地路径

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull imagePath;
  • 上传是否开启日志上报,默认开启

    Declaration

    Objective-C

    @property (nonatomic) BOOL reportEnabled;
  • 边导出边上传的分片大小,默认1MB;最少100KB

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger uploadPartSize;

export

  • 合成导出视频

    Declaration

    Objective-C

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

    Parameters

    taskPath

    taskPath

    outputPath

    导出视频路径

    Return Value

    返回值

  • 合成并上传

    Declaration

    Objective-C

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

    Parameters

    taskPath

    taskPath

    outputPath

    导出视频路径

    vodUploadAddress

    点播上传地址

    vodUploadAuth

    点播上传凭证

    Return Value

    返回值

  • 合成导出到流上传文件

    Declaration

    Objective-C

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

    Parameters

    taskPath

    taskPath

    outputPath

    导出视频路径

    outStreamFile

    输出到流上传文件

    Return Value

    返回值 输出到流文件

  • 暂停合成导出

    Declaration

    Objective-C

    - (int)pauseExport;

    Return Value

    返回值

  • 继续合成导出

    Declaration

    Objective-C

    - (int)resumeExport;

    Return Value

    返回值

  • 取消合成导出

    Declaration

    Objective-C

    - (int)cancelExport;

    Return Value

    返回值

upload

  • 上传流文件

    Declaration

    Objective-C

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

    Parameters

    streamFile

    流文件

    vodUploadAddress

    点播上传地址

    vodUploadAuth

    点播上传凭证

  • 上传封面

    Declaration

    Objective-C

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

    Parameters

    imagePath

    封面图片路径

    vodUploadAddress

    点播上传地址

    vodUploadAuth

    点播上传凭证

    Return Value

    返回值

  • 上传视频

    Declaration

    Objective-C

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

    Parameters

    videoPath

    视频路径

    vodUploadAddress

    点播上传地址

    vodUploadAuth

    点播上传凭证

    Return Value

    返回值

  • 暂停上传

    Declaration

    Objective-C

    - (int)pauseUpload;

    Return Value

    返回值

  • 继续上传

    Declaration

    Objective-C

    - (int)resumeUpload;

    Return Value

    返回值

  • 取消上传

    Declaration

    Objective-C

    - (int)cancelUpload;

    Return Value

    返回值

  • 刷新上传凭证

    Declaration

    Objective-C

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

    Parameters

    vodUploadAuth

    新的上传凭证

    Return Value

    返回值