28 #import <Foundation/Foundation.h> 30 # import <CoreGraphics/CoreGraphics.h> 31 # import <UIKit/UIKit.h> 45 extern NSString *
const VLCMediaPlayerTimeChanged;
46 extern NSString *
const VLCMediaPlayerStateChanged;
47 extern NSString *
const VLCMediaPlayerTitleChanged;
48 extern NSString *
const VLCMediaPlayerChapterChanged;
53 typedef NS_ENUM(NSInteger, VLCMediaPlayerState)
55 VLCMediaPlayerStateStopped,
56 VLCMediaPlayerStateOpening,
57 VLCMediaPlayerStateBuffering,
58 VLCMediaPlayerStateEnded,
59 VLCMediaPlayerStateError,
60 VLCMediaPlayerStatePlaying,
61 VLCMediaPlayerStatePaused
67 typedef NS_ENUM(
unsigned, VLCMediaPlaybackNavigationAction)
69 VLCMediaPlaybackNavigationActionActivate = 0,
70 VLCMediaPlaybackNavigationActionUp,
71 VLCMediaPlaybackNavigationActionDown,
72 VLCMediaPlaybackNavigationActionLeft,
73 VLCMediaPlaybackNavigationActionRight
81 extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
95 - (void)mediaPlayerStateChanged:(NSNotification *)aNotification;
102 - (void)mediaPlayerTimeChanged:(NSNotification *)aNotification;
110 - (void)mediaPlayerTitleChanged:(NSNotification *)aNotification;
117 - (void)mediaPlayerChapterChanged:(NSNotification *)aNotification;
125 - (void)mediaPlayerSnapshot:(NSNotification *)aNotification;
143 @property (weak, nonatomic) id<VLCMediaPlayerDelegate>
delegate;
145 #if !TARGET_OS_IPHONE 152 - (instancetype)initWithVideoView:(
VLCVideoView *)aVideoView;
158 - (instancetype)initWithVideoLayer:(
VLCVideoLayer *)aVideoLayer;
165 - (instancetype)initWithOptions:(NSArray *)options;
172 - (instancetype)initWithLibVLCInstance:(
void *)playerInstance andLibrary:(
VLCLibrary *)library;
178 #pragma mark video functionality 180 #if !TARGET_OS_IPHONE 240 - (void)saveVideoSnapshotAt:(NSString *)path withWidth:(
int)width andHeight:(
int)height;
247 - (void)setDeinterlaceFilter: (NSString *)name;
272 @property (nonatomic)
float hue;
294 @property (nonatomic)
float rate;
307 @property (NS_NONATOMIC_IOSONLY, readonly) CGSize
videoSize;
322 @property (NS_NONATOMIC_IOSONLY, readonly)
float framesPerSecond
__attribute__((deprecated));
346 #pragma mark ES track handling 407 - (BOOL)openVideoSubTitlesFromFile:(NSString *)path __attribute__((deprecated));
412 typedef NS_ENUM(
unsigned, VLCMediaPlaybackSlaveType)
414 VLCMediaPlaybackSlaveTypeSubtitle = 0,
415 VLCMediaPlaybackSlaveTypeAudio
426 - (int)addPlaybackSlave:(NSURL *)slaveURL type:(VLCMediaPlaybackSlaveType)slaveType enforce:(BOOL)enforceSelection;
458 - (int)numberOfChaptersForTitle:(
int)titleIndex;
464 - (NSArray *)chaptersForTitleIndex:(
int)titleIndex __attribute__((deprecated));
489 - (NSArray *)chapterDescriptionsOfTitle:(
int)titleIndex;
506 @property (readonly) NSUInteger countOfTitles
__attribute__((deprecated));
511 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *titles
__attribute__((deprecated));
573 #pragma mark audio functionality 590 #pragma mark equalizer 605 - (void)resetEqualizerFromProfile:(
unsigned)profile;
629 - (CGFloat)frequencyOfBandAtIndex:(
unsigned)index;
635 - (void)setAmplification:(CGFloat)amplification forBand:(
unsigned)index;
641 - (CGFloat)amplificationOfBand:(
unsigned)index;
644 #pragma mark media handling 653 #pragma mark playback operations 685 - (void)fastForwardAtRate:(
float)rate;
696 - (void)rewindAtRate:(
float)rate;
702 - (void)jumpBackward:(
int)interval;
708 - (void)jumpForward:(
int)interval;
753 - (void)performNavigationAction:(VLCMediaPlaybackNavigationAction)action;
765 - (BOOL)updateViewpoint:(CGFloat)yaw pitch:(CGFloat)pitch roll:(CGFloat)roll fov:(CGFloat)fov absolute:(BOOL)absolute;
768 #pragma mark playback information 773 @property (NS_NONATOMIC_IOSONLY, getter=isPlaying, readonly) BOOL
playing;
779 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL
willPlay;
785 @property (NS_NONATOMIC_IOSONLY, readonly) VLCMediaPlayerState
state;
797 @property (NS_NONATOMIC_IOSONLY, getter=isSeekable, readonly) BOOL
seekable;
803 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL
canPause;
811 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *snapshots;
819 @property (NS_NONATOMIC_IOSONLY, readonly) UIImage *lastSnapshot;
Definition: VLCVideoView.h:31
Definition: VLCLibrary.h:41
Definition: VLCVideoLayer.h:30
Definition: VLCAudio.h:36