Commit 62d043e539da5433dd9bfb24b6797bd5dd3a5210
1 parent
9e7e874d
no message
Showing
2 changed files
with
2 additions
and
3 deletions
CNLivePlayer/Classes/Player/CNLivePlayer.h
| @@ -67,7 +67,6 @@ typedef void (^AnchorStatus)(CNLiveAnchorStatus status); | @@ -67,7 +67,6 @@ typedef void (^AnchorStatus)(CNLiveAnchorStatus status); | ||
| 67 | 67 | ||
| 68 | @since v0.0.1 | 68 | @since v0.0.1 |
| 69 | */ | 69 | */ |
| 70 | - | ||
| 71 | @property (nonatomic, assign, readonly) CNLiveAnchorStatus anchorStatus; | 70 | @property (nonatomic, assign, readonly) CNLiveAnchorStatus anchorStatus; |
| 72 | 71 | ||
| 73 | /* | 72 | /* |
CNLivePlayer/Classes/Player/CNLivePlayer.m
| @@ -926,7 +926,7 @@ CVPixelBufferGetPixelFormatType 获取 YUV 的类型。 | @@ -926,7 +926,7 @@ CVPixelBufferGetPixelFormatType 获取 YUV 的类型。 | ||
| 926 | 926 | ||
| 927 | } error:^(NSInteger errors) { | 927 | } error:^(NSInteger errors) { |
| 928 | if (anchorStatus) { | 928 | if (anchorStatus) { |
| 929 | - anchorStatus(NO); | 929 | + anchorStatus(CNLiveAnchorStatusError); |
| 930 | } | 930 | } |
| 931 | }]; | 931 | }]; |
| 932 | 932 | ||
| @@ -947,7 +947,7 @@ CVPixelBufferGetPixelFormatType 获取 YUV 的类型。 | @@ -947,7 +947,7 @@ CVPixelBufferGetPixelFormatType 获取 YUV 的类型。 | ||
| 947 | //加入聊天室 | 947 | //加入聊天室 |
| 948 | [[CNLiveMsgManager sharedCNLiveMsgManager] gatherIfNullCreate:_roomId messageCount:1 success:^(NSString *targetId) { | 948 | [[CNLiveMsgManager sharedCNLiveMsgManager] gatherIfNullCreate:_roomId messageCount:1 success:^(NSString *targetId) { |
| 949 | if (anchorStatus) { | 949 | if (anchorStatus) { |
| 950 | - anchorStatus(YES); | 950 | + anchorStatus(CNLiveAnchorStatusLiving); |
| 951 | } | 951 | } |
| 952 | 952 | ||
| 953 | } error:^(NSInteger errors, NSString *targetId) { | 953 | } error:^(NSInteger errors, NSString *targetId) { |