d792427ce1
* added listener for timedMetadata event. * added callback in RCTVideo for the timed metadata * exposing onTimedMetadata to JS * added forgotten method declaration * returning array of string values * added metadata type to the array * added onMetadata method * overridden onMetadata method on exoplayer2 * added format of return value from onMetadata * added function reference in README file
34 lines
1.6 KiB
Objective-C
34 lines
1.6 KiB
Objective-C
#import <React/RCTView.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#import "AVKit/AVKit.h"
|
|
#import "UIView+FindUIViewController.h"
|
|
#import "RCTVideoPlayerViewController.h"
|
|
#import "RCTVideoPlayerViewControllerDelegate.h"
|
|
|
|
@class RCTEventDispatcher;
|
|
|
|
@interface RCTVideo : UIView <RCTVideoPlayerViewControllerDelegate>
|
|
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoLoadStart;
|
|
@property (nonatomic, copy) RCTBubblingEventBlock onVideoLoad;
|
|
@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;
|
|
@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;
|
|
|
|
- (AVPlayerViewController*)createPlayerViewController:(AVPlayer*)player withPlayerItem:(AVPlayerItem*)playerItem;
|
|
|
|
@end
|