-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathWPVideoPlayerView.h
40 lines (22 loc) · 980 Bytes
/
WPVideoPlayerView.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
@import Foundation;
@import UIKit;
@import AVFoundation;
@class WPVideoPlayerView;
@protocol WPVideoPlayerViewDelegate
- (void)videoPlayerView:(WPVideoPlayerView *)playerView didFailWithError:(NSError *)error;
- (void)videoPlayerViewStarted:(WPVideoPlayerView *)playerView;
- (void)videoPlayerViewFinish:(WPVideoPlayerView *)playerView;
@end
@interface WPVideoPlayerView: UIView
@property (nonatomic, assign) BOOL loop;
@property (nonatomic, weak) id<WPVideoPlayerViewDelegate> delegate;
@property (nonatomic, strong) NSURL *videoURL;
@property (nonatomic, strong) AVAsset *asset;
@property (nonatomic, assign) BOOL controlToolbarHidden;
@property (nonatomic, assign) BOOL shouldAutoPlay;
- (void)setControlToolbarHidden:(BOOL)hidden animated:(BOOL)animated;
- (void)setControlToolbarHidden:(BOOL)hidden animated:(BOOL)animated completion:(void(^)(void))completion;
@property (nonatomic, readonly) UIToolbar *controlToolbar;
- (void)play;
- (void)pause;
@end