You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

#import "PlayerBase.h"
@class PlayerNative;
@protocol VideoPlayerDelegates <NSObject>
@optional
- (void)videoPlayerIsReadyToPlayVideo:(PlayerNative *)videoPlayer;
- (void)videoPlayerDidReachEnd:(PlayerNative *)videoPlayer;
- (void)videoPlayer:(PlayerNative *)videoPlayer timeDidChange:(CMTime)cmTime;
- (void)videoPlayer:(PlayerNative *)videoPlayer loadedTimeRangeDidChange:(float)duration;
- (void)videoPlayerPlaybackBufferEmpty:(PlayerNative *)videoPlayer;
- (void)videoPlayerPlaybackLikelyToKeepUp:(PlayerNative *)videoPlayer;
- (void)videoPlayer:(PlayerNative *)videoPlayer didFailWithError:(NSError *)error;
@end
@interface PlayerNative : NSObject<PlayerBase>
@property AVPlayer *player;
@property AVPlayerItem *playerItem;
@property AVPlayerItemVideoOutput* videoOutput;
@property bool hasVideoTrack;
@property CVPixelBufferRef pixelBuffer;
@property BOOL flipVertically;
@property BOOL playing;
@property BOOL ready;
@property BOOL seeking;
@property NSURL* url;
@property CGSize videoSize;
@property (nonatomic) int duration;
@property (nonatomic) int framesCounter;
@property int cachedPlaybackTime;
@end