// // JXPlayerOverlay.m // AICity // // Created by TogetherWatch on 2025-10-13. // #import "JXPlayerOverlay.h" @implementation JXPlayerOverlay - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self setupUI]; } return self; } - (void)setupUI { // TODO: 创建所有UI元素 // 参考quickstart.md中的详细实现: // - 顶部标题横幅 // - 右侧交互按钮(关注、点赞、评论、收藏、分享) // - 底部信息覆盖层 // - 底部导航栏 } - (void)configureWithDrama:(JXDrama *)drama episode:(JXEpisode *)episode interaction:(JXInteraction *)interaction { // TODO: 更新UI元素数据 // - 顶部横幅:episode.title, episode.isPaid // - 底部信息:drama.title, drama.authorInfo, drama.category // - 交互数据:interaction.formattedLikeCount等 } - (void)showUI { [UIView animateWithDuration:0.3 animations:^{ self.alpha = 1.0; }]; } - (void)hideUI { [UIView animateWithDuration:0.3 animations:^{ self.alpha = 0.0; }]; } @end