Commit e7a3775ceadc1a55ef414c4fdfce04e1da69296b
1 parent
fcb9459b
提交加入授权判断
Showing
2 changed files
with
3 additions
and
3 deletions
CNLiveUploadManager.podspec
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){ | ... | ... |