Commit 7839ad725ccd5a897a055a82bb87beed25ef6510

Authored by yanglingyu
1 parent f3b1687e

七牛上传取消

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.24'
  11 + s.version = '0.1.25'
12 12 s.summary = '压缩上传,组件化中加入新参数加入outPath,不在直接取'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveUploadManager/Classes/CNLiveUploadManager.m
... ... @@ -247,7 +247,9 @@ static CNLiveUploadManager *_uploadManager;
247 247 QNUploadOption *opt = [[QNUploadOption alloc] initWithMime:nil progressHandler:^(NSString *key, float percent) {
248 248  
249 249 !progress ? : progress(percent);
250   - } params:dic checkCrc:YES cancellationSignal:nil];
  250 + } params:dic checkCrc:YES cancellationSignal:^BOOL{
  251 + return YES;
  252 + }];
251 253 self.qnUploadOption = opt;
252 254 [_qnUploadManager putData:data key:key token:token complete:^(QNResponseInfo *info, NSString *key, NSDictionary *resp) {
253 255  
... ... @@ -307,7 +309,9 @@ static CNLiveUploadManager *_uploadManager;
307 309 currentPresent += percent;
308 310 NSLog(@"输出个数%f",currentPresent);//单个视频的进度
309 311 !progress ? : progress(currentPresent);
310   - } params:dic checkCrc:YES cancellationSignal:nil];
  312 + } params:dic checkCrc:YES cancellationSignal:^BOOL{
  313 + return YES;
  314 + }];
311 315 self.qnUploadOption = opt;
312 316 [_qnUploadManager putPHAsset:phAsset key:key token:token complete:^(QNResponseInfo *info, NSString *key, NSDictionary *resp) {
313 317 dispatch_async(dispatch_get_main_queue(), ^{
... ... @@ -360,7 +364,9 @@ static CNLiveUploadManager *_uploadManager;
360 364  
361 365 NSLog(@"输出个数%f",percent);//单个视频的进度
362 366 !progress ? : progress(percent);
363   - } params:dic checkCrc:YES cancellationSignal:nil];
  367 + } params:dic checkCrc:YES cancellationSignal:^BOOL{
  368 + return YES;
  369 + }];
364 370 self.qnUploadOption = opt;
365 371 [_qnUploadManager putFile:file key:key token:token complete:^(QNResponseInfo *info, NSString *key, NSDictionary *resp) {
366 372 dispatch_async(dispatch_get_main_queue(), ^{
... ... @@ -434,7 +440,9 @@ static CNLiveUploadManager *_uploadManager;
434 440 }.copy;
435 441 QNUploadOption *opt = [[QNUploadOption alloc] initWithMime:nil progressHandler:^(NSString *key, float percent) {
436 442  
437   - } params:dic checkCrc:YES cancellationSignal:nil];
  443 + } params:dic checkCrc:YES cancellationSignal:^BOOL{
  444 + return YES;
  445 + }];
438 446 self.qnUploadOption = opt;
439 447 [strongManager putData:dataArr[index] key:keys[index] token:token complete:^(QNResponseInfo *info, NSString *key, NSDictionary *resp) {
440 448  
... ...