react-native-video/ios/RCTVideo.h

37 lines
1.8 KiB
C
Raw Normal View History

#import <React/RCTView.h>
2015-12-22 16:39:04 -07:00
#import <AVFoundation/AVFoundation.h>
#import "AVKit/AVKit.h"
2016-03-31 13:03:54 -06:00
#import "UIView+FindUIViewController.h"
#import "RCTVideoPlayerViewController.h"
2016-04-01 02:52:05 -06:00
#import "RCTVideoPlayerViewControllerDelegate.h"
#import "RCTVideoCache.h"
#import "DVURLAsset.h"
@class RCTEventDispatcher;
2015-03-30 23:07:55 -06:00
@interface RCTVideo : UIView <RCTVideoPlayerViewControllerDelegate, DVAssetLoaderDelegatesDelegate>
2015-03-30 23:07:55 -06:00
@property (nonatomic, copy) RCTBubblingEventBlock onVideoLoadStart;
@property (nonatomic, copy) RCTBubblingEventBlock onVideoLoad;
2017-01-11 05:51:45 -07:00
@property (nonatomic, copy) RCTBubblingEventBlock onVideoBuffer;
@property (nonatomic, copy) RCTBubblingEventBlock onVideoError;
@property (nonatomic, copy) RCTBubblingEventBlock onVideoProgress;
@property (nonatomic, copy) RCTBubblingEventBlock onVideoSeek;
@property (nonatomic, copy) RCTBubblingEventBlock onVideoEnd;
@property (nonatomic, copy) RCTBubblingEventBlock onTimedMetadata;
2018-07-16 10:47:27 -06:00
@property (nonatomic, copy) RCTBubblingEventBlock onVideoAudioBecomingNoisy;
@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;
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
2015-12-22 16:39:04 -07:00
- (AVPlayerViewController*)createPlayerViewController:(AVPlayer*)player withPlayerItem:(AVPlayerItem*)playerItem;
2015-03-30 23:07:55 -06:00
@end