GKDYVideoControlView.h
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
// GKDYVideoControlView.h
// GKDYVideo
//
// Created by QuintGao on 2018/9/23.
// Copyright © 2018 QuintGao. All rights reserved.
// 播放器视图控制层
#import <UIKit/UIKit.h>
#import "GKSliderView.h"
@class ATRecord;
NS_ASSUME_NONNULL_BEGIN
@class GKDYVideoControlView;
@protocol GKDYVideoControlViewDelegate <NSObject>
- (void)controlViewDidClickSelf:(GKDYVideoControlView *)controlView;
- (void)controlViewDidClickIcon:(GKDYVideoControlView *)controlView;
- (void)controlViewDidClickPriase:(GKDYVideoControlView *)controlView;
- (void)controlViewDidClickComment:(GKDYVideoControlView *)controlView;
- (void)controlViewDidClickShare:(GKDYVideoControlView *)controlView;
- (void)controlView:(GKDYVideoControlView *)controlView touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;
@end
@interface GKDYVideoControlView : UIView
@property (nonatomic, weak) id<GKDYVideoControlViewDelegate> delegate;
// 视频封面图:显示封面并播放视频
@property (nonatomic, strong) UIImageView *coverImgView;
@property (nonatomic, strong) ATRecord *model;
@property (nonatomic, strong) GKSliderView *sliderView;
- (void)setProgress:(float)progress;
- (void)startLoading;
- (void)stopLoading;
- (void)showPlayBtn;
- (void)hidePlayBtn;
- (void)showLikeAnimation;
- (void)showUnLikeAnimation;
- (void)showCover;
-(void)hideCover;
@end
NS_ASSUME_NONNULL_END