Commit e7a3775ceadc1a55ef414c4fdfce04e1da69296b

Authored by 梁星国
1 parent fcb9459b

提交加入授权判断

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.16'
  11 + s.version = '0.1.17'
12 12 s.summary = '压缩上传,组件化中加入新参数加入outPath,不在直接取'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveUploadManager/Classes/CNLiveUploadManager.m
... ... @@ -2247,7 +2247,7 @@ static CNLiveUploadManager *_uploadManager;
2247 2247  
2248 2248 [PLShortVideoRecorder checkAuthentication:^(PLSAuthenticationResult result) {
2249 2249  
2250   - if (PLSAuthenticationResultAuthorized == result) {//授权
  2250 + if (PLSAuthenticationResultAuthorized == result || PLSAuthenticationResultNotDetermined == result) {//授权
2251 2251 //成功
2252 2252 [shortVideoTranscoder setCompletionBlock:^(NSURL *url){
2253 2253 NSLog(@"输出转码后视频路径%@",url.path);
... ... @@ -2336,7 +2336,7 @@ static CNLiveUploadManager *_uploadManager;
2336 2336 dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
2337 2337 [PLShortVideoRecorder checkAuthentication:^(PLSAuthenticationResult result) {
2338 2338  
2339   - if (PLSAuthenticationResultAuthorized == result) {//授权
  2339 + if (PLSAuthenticationResultAuthorized == result || PLSAuthenticationResultNotDetermined == result) {//授权
2340 2340  
2341 2341 //成功
2342 2342 [shortVideoTranscoder setCompletionBlock:^(NSURL *url){
... ...