forked from indulgeIn/YBImageBrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYBIBVideoView.h
76 lines (43 loc) · 1.87 KB
/
YBIBVideoView.h
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
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// YBIBVideoView.h
// YBImageBrowserDemo
//
// Created by 波儿菜 on 2019/7/11.
// Copyright © 2019 杨波. All rights reserved.
//
#import "YBIBVideoActionBar.h"
#import "YBIBVideoTopBar.h"
NS_ASSUME_NONNULL_BEGIN
@class YBIBVideoView;
@protocol YBIBVideoViewDelegate <NSObject>
@required
- (BOOL)yb_isFreezingForVideoView:(YBIBVideoView *)view;
- (void)yb_preparePlayForVideoView:(YBIBVideoView *)view;
- (void)yb_startPlayForVideoView:(YBIBVideoView *)view;
- (void)yb_finishPlayForVideoView:(YBIBVideoView *)view;
- (void)yb_didPlayToEndTimeForVideoView:(YBIBVideoView *)view;
- (void)yb_playFailedForVideoView:(YBIBVideoView *)view;
- (void)yb_respondsToTapGestureForVideoView:(YBIBVideoView *)view;
- (void)yb_cancelledForVideoView:(YBIBVideoView *)view;
- (CGSize)yb_containerSizeForVideoView:(YBIBVideoView *)view;
- (void)yb_autoPlayCountChanged:(NSUInteger)count;
@end
@interface YBIBVideoView : UIView
@property (nonatomic, strong) UIImageView *thumbImageView;
@property (nonatomic, weak) id<YBIBVideoViewDelegate> delegate;
- (void)updateLayoutWithExpectOrientation:(UIDeviceOrientation)orientation containerSize:(CGSize)containerSize;
@property (nonatomic, strong, nullable) AVAsset *asset;
@property (nonatomic, assign, readonly, getter=isPlaying) BOOL playing;
@property (nonatomic, assign, readonly, getter=isPlayFailed) BOOL playFailed;
@property (nonatomic, assign, readonly, getter=isPreparingPlay) BOOL preparingPlay;
@property (nonatomic, strong, readonly) UITapGestureRecognizer *tapGesture;
- (void)reset;
- (void)hideToolBar:(BOOL)hide;
- (void)hidePlayButton;
- (void)preparPlay;
@property (nonatomic, assign) BOOL needAutoPlay;
@property (nonatomic, assign) NSUInteger autoPlayCount;
@property (nonatomic, strong, readonly) YBIBVideoTopBar *topBar;
@property (nonatomic, strong, readonly) YBIBVideoActionBar *actionBar;
@end
NS_ASSUME_NONNULL_END