|
|
@@ -182,9 +182,7 @@
|
|
|
playerContainer.backgroundColor = [UIColor blackColor];
|
|
|
[cell.contentView addSubview:playerContainer];
|
|
|
[cell.contentView sendSubviewToBack:playerContainer];
|
|
|
- // 创建播放器
|
|
|
- JXSuperPlayer *player = [[JXSuperPlayer alloc] initWithContainerView:playerContainer];
|
|
|
- player.delegate = self;
|
|
|
+
|
|
|
// 右侧互动按钮
|
|
|
[self setupInteractionButtonsForCell:cell];
|
|
|
|
|
|
@@ -253,6 +251,8 @@
|
|
|
make.width.mas_equalTo(SCREEN_WIDTH - 90);
|
|
|
}];
|
|
|
|
|
|
+
|
|
|
+
|
|
|
// // 作者
|
|
|
// UILabel *authorLabel = [[UILabel alloc] initWithFrame:CGRectMake(16, y, width - 32, 20)];
|
|
|
// authorLabel.font = [UIFont systemFontOfSize:13];
|
|
|
@@ -286,6 +286,9 @@
|
|
|
// episodeTitleLabel.numberOfLines = 2;
|
|
|
// [episodeInfoView addSubview:episodeTitleLabel];
|
|
|
|
|
|
+ // 创建播放器
|
|
|
+ JXSuperPlayer *player = [[JXSuperPlayer alloc] initWithContainerView:playerContainer];
|
|
|
+ player.delegate = self;
|
|
|
// 播放视频
|
|
|
[player playWithAppId:episode.appId fileId:episode.fileId psign:episode.psign];
|
|
|
|
|
|
@@ -368,6 +371,23 @@
|
|
|
if (currentPage != self.currentEpisodeIndex) {
|
|
|
self.currentEpisodeIndex = currentPage;
|
|
|
NSLog(@"📺 滚动到第 %ld 集", (long)currentPage + 1);
|
|
|
+
|
|
|
+// UICollectionViewCell *cell = [self.episodeCollectionView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:currentPage inSection:0]];
|
|
|
+// // 创建播放器
|
|
|
+// CGFloat width = cell.contentView.bounds.size.width;
|
|
|
+// CGFloat height = cell.contentView.bounds.size.height;
|
|
|
+// CGFloat playerHeight = height;
|
|
|
+// UIView *playerContainer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, width, playerHeight)];
|
|
|
+// playerContainer.backgroundColor = [UIColor blackColor];
|
|
|
+// [cell.contentView addSubview:playerContainer];
|
|
|
+// [cell.contentView sendSubviewToBack:playerContainer];
|
|
|
+// JXEpisode *episode = self.episodes[currentPage];
|
|
|
+// JXSuperPlayer *player = [[JXSuperPlayer alloc] initWithContainerView:playerContainer];
|
|
|
+// player.delegate = self;
|
|
|
+// // 播放视频
|
|
|
+// [player playWithAppId:episode.appId fileId:episode.fileId psign:episode.psign];
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|