// // GKDYVideoPortraitView.h // GKDYVideo // // Created by QuintGao on 2023/3/17. // Copyright © 2023 QuintGao. All rights reserved. // #import #import #import "GKDYVideoModel.h" #import "GKDYVideoSlider.h" #import "GKLikeView.h" NS_ASSUME_NONNULL_BEGIN @class GKDYVideoPortraitView; @protocol GKDYVideoPortraitViewDelegate /// 收藏点击事件代理 - (void)videoPortraitView:(GKDYVideoPortraitView *) view didClickFavorite:(GKDYVideoModel *)model; /// 剧集点击事件代理 - (void)videoPortraitView:(GKDYVideoPortraitView *) view didClickEpiscode:(GKDYVideoModel *)model; /// 分享点击事件代理 - (void)videoPortraitView:(GKDYVideoPortraitView *) view didClickShare:(GKDYVideoModel *)model; /// 弹幕点击事件代理 - (void)videoPortraitView:(GKDYVideoPortraitView *) view didClickDanmu:(GKDYVideoModel *)model; /// 全屏点击事件代理 - (void)videoPortraitView:(GKDYVideoPortraitView *) view didClickFullscreen:(GKDYVideoModel *)model; @end @interface GKDYVideoPortraitView : UIView @property (nonatomic, weak) id delegate; /// 数据模型 @property (nonatomic, strong) GKDYVideoModel * model; /// 视频介绍等 @property (nonatomic, strong) UIView * bottomContainerView; /// 进度条 @property (nonatomic, strong) GKDYVideoSlider * slider; /// 收藏按钮 带动画 @property (nonatomic, strong) GKLikeView * favoriteButton; /// 继续播放按钮 @property (nonatomic, strong) UIButton * resumeButton; - (void)handleSingleTapped; - (void)willBeginDragging; - (void)didEndDragging; @end NS_ASSUME_NONNULL_END