CNLiveMultipartUpload.h
1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// CNLiveMultipartUpload.h
// CNLiveUploadYunSDK
//
// Created by 张旭 on 2017/8/24.
// Copyright © 2017年 cnlive. All rights reserved.
//
#import "CNLiveOwner.h"
#import <Foundation/Foundation.h>
//上传类型
typedef enum {
kCNLiveUploadNormal = 0, //沙盒里或工程里
kCNLiveUploadAlasset, //相册中
} CNLiveUploadType;
@interface CNLiveMultipartUpload : NSObject
@property(nonatomic, strong) NSString *key;
@property(nonatomic, strong) NSString *bucket;
@property(nonatomic, strong) NSString *uploadId;
@property(nonatomic, strong) NSString *storageClass;
@property(nonatomic, strong) CNLiveOwner *initiator;
@property(nonatomic, strong) CNLiveOwner *owner;
@property(nonatomic, strong) NSDate *initiated;
@property(assign, readonly) BOOL isCanceled;
@property(assign, nonatomic, readonly) BOOL isPaused;
@property(assign, nonatomic) CNLiveUploadType uploadType;
//暂停
- (void)pause;
//继续
- (void)proceed;
//取消
- (void)cancel;
@end