65 lines
1.6 KiB
Objective-C
Executable File
65 lines
1.6 KiB
Objective-C
Executable File
//
|
|
// GKDYVideoPortraitView.h
|
|
// GKDYVideo
|
|
//
|
|
// Created by QuintGao on 2023/3/17.
|
|
// Copyright © 2023 QuintGao. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <ZFPlayer/ZFPlayer.h>
|
|
#import "GKDYVideoModel.h"
|
|
#import "GKDYVideoSlider.h"
|
|
#import "GKLikeView.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class GKDYVideoPortraitView;
|
|
|
|
@protocol GKDYVideoPortraitViewDelegate <NSObject>
|
|
|
|
/// 收藏点击事件代理
|
|
- (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<ZFPlayerMediaControl>
|
|
|
|
@property (nonatomic, weak) id<GKDYVideoPortraitViewDelegate> 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
|