Commit d74a2a4c3bd25e591a882c5bef233411d347b467
1 parent
4220d393
git提交
Showing
1 changed file
with
3 additions
and
0 deletions
CNLivePlayer/Classes/Player/CNLivePlayer.m
| @@ -176,6 +176,9 @@ NSString * const CNLiveAnchorStatusChangedNotification = @"CNLiveAnchorStatusCha | @@ -176,6 +176,9 @@ NSString * const CNLiveAnchorStatusChangedNotification = @"CNLiveAnchorStatusCha | ||
| 176 | 176 | ||
| 177 | } | 177 | } |
| 178 | - (void)setPlayerWithContentId:(NSString *)contentId type:(CNLivePlayerType)type authSuccess:(AuthSuccessBlock)authSuccessBlock authFailure:(AuthFailureBlock)authFailureBlock{ | 178 | - (void)setPlayerWithContentId:(NSString *)contentId type:(CNLivePlayerType)type authSuccess:(AuthSuccessBlock)authSuccessBlock authFailure:(AuthFailureBlock)authFailureBlock{ |
| 179 | + if([_contentId isEqualToString:contentId]){ | ||
| 180 | + return; | ||
| 181 | + } | ||
| 179 | _retryTime = 0; | 182 | _retryTime = 0; |
| 180 | _type = type; | 183 | _type = type; |
| 181 | switch (type) { | 184 | switch (type) { |