Commit f3b1687ecbcba829201fa0b0d21666560f57e4f1
1 parent
2a5a2191
增加opt属性
Showing
3 changed files
with
7 additions
and
6 deletions
CNLiveUploadManager.podspec
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | |
| 9 | 9 | Pod::Spec.new do |s| |
| 10 | 10 | s.name = 'CNLiveUploadManager' |
| 11 | - s.version = '0.1.23' | |
| 11 | + s.version = '0.1.24' | |
| 12 | 12 | s.summary = '压缩上传,组件化中加入新参数加入outPath,不在直接取' |
| 13 | 13 | |
| 14 | 14 | # This description is used to generate tags and improve search results. |
| ... | ... | @@ -50,6 +50,7 @@ Pod::Spec.new do |s| |
| 50 | 50 | s.dependency 'CNLiveBaseKit' |
| 51 | 51 | s.dependency 'CNLiveBusinessTools' |
| 52 | 52 | s.dependency 'CNLiveBaseTools' |
| 53 | + s.dependency 'CNLiveUserManagement' | |
| 53 | 54 | |
| 54 | 55 | |
| 55 | 56 | ... | ... |
CNLiveUploadManager/Classes/CNLiveUploadManager.h
CNLiveUploadManager/Classes/CNLiveUploadManager.m
| ... | ... | @@ -248,7 +248,7 @@ static CNLiveUploadManager *_uploadManager; |
| 248 | 248 | |
| 249 | 249 | !progress ? : progress(percent); |
| 250 | 250 | } params:dic checkCrc:YES cancellationSignal:nil]; |
| 251 | - | |
| 251 | + self.qnUploadOption = opt; | |
| 252 | 252 | [_qnUploadManager putData:data key:key token:token complete:^(QNResponseInfo *info, NSString *key, NSDictionary *resp) { |
| 253 | 253 | |
| 254 | 254 | dispatch_async(dispatch_get_main_queue(), ^{ |
| ... | ... | @@ -308,7 +308,7 @@ static CNLiveUploadManager *_uploadManager; |
| 308 | 308 | NSLog(@"输出个数%f",currentPresent);//单个视频的进度 |
| 309 | 309 | !progress ? : progress(currentPresent); |
| 310 | 310 | } params:dic checkCrc:YES cancellationSignal:nil]; |
| 311 | - | |
| 311 | + self.qnUploadOption = opt; | |
| 312 | 312 | [_qnUploadManager putPHAsset:phAsset key:key token:token complete:^(QNResponseInfo *info, NSString *key, NSDictionary *resp) { |
| 313 | 313 | dispatch_async(dispatch_get_main_queue(), ^{ |
| 314 | 314 | //返回结果 |
| ... | ... | @@ -361,7 +361,7 @@ static CNLiveUploadManager *_uploadManager; |
| 361 | 361 | NSLog(@"输出个数%f",percent);//单个视频的进度 |
| 362 | 362 | !progress ? : progress(percent); |
| 363 | 363 | } params:dic checkCrc:YES cancellationSignal:nil]; |
| 364 | - | |
| 364 | + self.qnUploadOption = opt; | |
| 365 | 365 | [_qnUploadManager putFile:file key:key token:token complete:^(QNResponseInfo *info, NSString *key, NSDictionary *resp) { |
| 366 | 366 | dispatch_async(dispatch_get_main_queue(), ^{ |
| 367 | 367 | //返回结果 |
| ... | ... | @@ -435,7 +435,7 @@ static CNLiveUploadManager *_uploadManager; |
| 435 | 435 | QNUploadOption *opt = [[QNUploadOption alloc] initWithMime:nil progressHandler:^(NSString *key, float percent) { |
| 436 | 436 | |
| 437 | 437 | } params:dic checkCrc:YES cancellationSignal:nil]; |
| 438 | - | |
| 438 | + self.qnUploadOption = opt; | |
| 439 | 439 | [strongManager putData:dataArr[index] key:keys[index] token:token complete:^(QNResponseInfo *info, NSString *key, NSDictionary *resp) { |
| 440 | 440 | |
| 441 | 441 | NSLog(@"***输出第%zi图片***",index); | ... | ... |