Commit 6076afdd6335f8742934ae5d815c90ec93dab3ad

Authored by zhangxiaowen
1 parent 1881ff28

no message

CNLivePlayer/Classes/Header/CNLivePlayerDelegate.h
@@ -86,8 +86,8 @@ NS_ASSUME_NONNULL_BEGIN @@ -86,8 +86,8 @@ NS_ASSUME_NONNULL_BEGIN
86 软解为 kCVPixelFormatType_420YpCbCr8Planar. 86 软解为 kCVPixelFormatType_420YpCbCr8Planar.
87 硬解为 kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange. 87 硬解为 kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange.
88 @param pts 显示时间戳 单位ms 88 @param pts 显示时间戳 单位ms
89 - @param sarNumerator  
90 - @param sarDenominator 89 + @param sarNumerator 分子
  90 + @param sarDenominator 分母
91 其中sar 表示 storage aspect ratio 91 其中sar 表示 storage aspect ratio
92 视频流的显示比例 sarNumerator sarDenominator 92 视频流的显示比例 sarNumerator sarDenominator
93 @discussion sarNumerator = 0 表示该参数无效 93 @discussion sarNumerator = 0 表示该参数无效
CNLivePlayer/Classes/Player/CNLivePlayer.m
@@ -210,7 +210,7 @@ @@ -210,7 +210,7 @@
210 } 210 }
211 break; 211 break;
212 } 212 }
213 - int64_t seconds = self.player.currentTime.value+3; 213 + int64_t seconds = self.player.currentTime.value+10;
214 int32_t timeScale = self.player.currentTime.timescale; 214 int32_t timeScale = self.player.currentTime.timescale;
215 _switchRateTime = CMTimeMake(seconds, timeScale); 215 _switchRateTime = CMTimeMake(seconds, timeScale);
216 [self getCacheURLSuccess:nil failure:nil]; 216 [self getCacheURLSuccess:nil failure:nil];
@@ -235,7 +235,7 @@ @@ -235,7 +235,7 @@
235 [self getVideoURLSuccess:success failure:failure]; 235 [self getVideoURLSuccess:success failure:failure];
236 } 236 }
237 } 237 }
238 - // 无鉴权失败 238 + // 无鉴权
239 else{ 239 else{
240 __weak typeof(self) weakSelf = self; 240 __weak typeof(self) weakSelf = self;
241 [CNLivePlayerRequest getAuthenticationBlock:^(NSString * _Nullable code, NSError * _Nullable error) { 241 [CNLivePlayerRequest getAuthenticationBlock:^(NSString * _Nullable code, NSError * _Nullable error) {
@@ -262,6 +262,7 @@ @@ -262,6 +262,7 @@
262 [strongSelf.delegate player:strongSelf stoppedWithError:customError]; 262 [strongSelf.delegate player:strongSelf stoppedWithError:customError];
263 } 263 }
264 } 264 }
  265 + failure?failure(error):@"";
265 } 266 }
266 }]; 267 }];
267 } 268 }