Commit d9bf2956c04ecf54871915f00fd67beb9fed5979

Authored by zhangxiaowen
1 parent a589af84

no message

CNLivePlayer/Classes/Player/CNLivePlayer.m
... ... @@ -42,7 +42,6 @@ NSString * const CNLiveAnchorStatusChangedNotification = @"CNLiveAnchorStatusCha
42 42  
43 43 }
44 44 @property (nonatomic, strong, readwrite) UIView *view;
45   -@property (nonatomic, strong) UIImageView *imageView;
46 45 @property (nonatomic, copy) NSString *videoUrl;
47 46  
48 47 @end
... ... @@ -214,8 +213,6 @@ NSString * const CNLiveAnchorStatusChangedNotification = @"CNLiveAnchorStatusCha
214 213 break;
215 214  
216 215 }
217   - self.imageView.image = [_player thumbnailImageAtCurrentTime];
218   - self.imageView.hidden = NO;
219 216  
220 217 __weak typeof(self) weakSelf = self;
221 218 dispatch_async(dispatch_get_global_queue(0, 0), ^{
... ... @@ -684,23 +681,12 @@ NSString * const CNLiveAnchorStatusChangedNotification = @"CNLiveAnchorStatusCha
684 681  
685 682 }
686 683  
687   -- (UIImageView *)imageView {
688   - if (!_imageView) {
689   - _imageView = [[UIImageView alloc] initWithFrame:self.player.view.bounds];
690   - _imageView.backgroundColor = [UIColor redColor];
691   - [self.player.view addSubview:_imageView];
692   - }
693   - return _imageView;
694   -
695   -}
696   -
697 684 /* 准备视频播放
698 685 *
699 686 * MPMediaPlaybackIsPreparedToPlayDidChangeNotification, 播放器完成对视频文件的初始化时发送通知
700 687 *
701 688 */
702 689 - (void)prepareToPlay {
703   - _imageView.hidden = YES;
704 690 [_player prepareToPlay];
705 691  
706 692 }
... ...
CNLivePlayer/Classes/Player/CNLivePlayerConst.h
... ... @@ -21,10 +21,10 @@
21 21 #define authUrl [NSString stringWithFormat:@"%@/platform/valid", [CNLivePlayerManager manager].isTestEnvironment ? @"http://test.open.cnlive.com/openapi/api2" : @"http://api.cnlive.com/open/api2"]
22 22  
23 23 #pragma mark - 点播
24   -#define vodUrl [CNLivePlayerManager manager].isTestEnvironment?@"http://test.open.cnlive.com/openapi/api2/vod_ips/vodplayByAPP":@"http://api.cnlive.com/open/api2/vod_ips/vodplayByAPP"
  24 +#define vodUrl [CNLivePlayerManager manager].isTestEnvironment ? @"http://test.open.cnlive.com/openapi/api2/vod_ips/vodplayByAPP":@"http://api.cnlive.com/open/api2/vod_ips/vodplayByAPP"
25 25  
26 26 #pragma mark - 直播
27   -#define liveUrl [CNLivePlayerManager manager].isTestEnvironment?@"http://test.open.cnlive.com/openapi/api2/live_ips/liveplayByAPP":@"http://api.cnlive.com/open/api2/live_ips/liveplayByAPP"
  27 +#define liveUrl [CNLivePlayerManager manager].isTestEnvironment ? @"http://test.open.cnlive.com/openapi/api2/live_ips/liveplayByAPP":@"http://api.cnlive.com/open/api2/live_ips/liveplayByAPP"
28 28  
29 29 // 存储鉴权
30 30 #define kCNLivePlayerSDKAuthentication @"kCNLivePlayerSDKAuthentication"
... ...