2017-01-11 13:43:43 +01:00
|
|
|
#import <React/RCTView.h>
|
2015-12-22 17:39:04 -06:00
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
#import "AVKit/AVKit.h"
|
2016-03-31 21:03:54 +02:00
|
|
|
#import "UIView+FindUIViewController.h"
|
2016-03-31 23:10:25 +02:00
|
|
|
#import "RCTVideoPlayerViewController.h"
|
2016-04-01 10:52:05 +02:00
|
|
|
#import "RCTVideoPlayerViewControllerDelegate.h"
|
2018-07-19 02:06:09 +02:00
|
|
|
|
|
|
|
#if __has_include(<react-native-video/RCTVideoCache.h>)
|
|
|
|
#import <react-native-video/RCTVideoCache.h>
|
2018-08-08 15:37:18 -07:00
|
|
|
#import <DVAssetLoaderDelegate/DVURLAsset.h>
|
|
|
|
#import <DVAssetLoaderDelegate/DVAssetLoaderDelegate.h>
|
2018-07-19 02:06:09 +02:00
|
|
|
#endif
|
2015-04-06 12:17:32 -07:00
|
|
|
|
|
|
|
@class RCTEventDispatcher;
|
2018-07-19 02:06:09 +02:00
|
|
|
#if __has_include(<react-native-video/RCTVideoCache.h>)
|
2018-03-01 23:38:38 +01:00
|
|
|
@interface RCTVideo : UIView <RCTVideoPlayerViewControllerDelegate, DVAssetLoaderDelegatesDelegate>
|
2018-07-19 02:06:09 +02:00
|
|
|
#else
|
|
|
|
@interface RCTVideo : UIView <RCTVideoPlayerViewControllerDelegate>
|
|
|
|
#endif
|
2015-03-30 22:07:55 -07:00
|
|
|
|
2016-12-13 00:16:11 +00:00
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoLoadStart;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoLoad;
|
2017-01-11 12:51:45 +00:00
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoBuffer;
|
2016-12-13 00:16:11 +00:00
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoError;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoProgress;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoSeek;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoEnd;
|
2017-02-14 03:38:02 +01:00
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onTimedMetadata;
|
2018-07-16 09:47:27 -07:00
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoAudioBecomingNoisy;
|
2016-12-13 00:16:11 +00:00
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoFullscreenPlayerWillPresent;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoFullscreenPlayerDidPresent;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoFullscreenPlayerWillDismiss;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoFullscreenPlayerDidDismiss;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onReadyForDisplay;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onPlaybackStalled;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onPlaybackResume;
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onPlaybackRateChange;
|
|
|
|
|
2015-04-06 12:17:32 -07:00
|
|
|
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
2015-12-22 17:39:04 -06:00
|
|
|
- (AVPlayerViewController*)createPlayerViewController:(AVPlayer*)player withPlayerItem:(AVPlayerItem*)playerItem;
|
|
|
|
|
2015-03-30 22:07:55 -07:00
|
|
|
@end
|