27 #import <Foundation/Foundation.h> 29 # import <CoreGraphics/CoreGraphics.h> 30 # import <UIKit/UIKit.h> 44 extern NSString *
const VLCMediaPlayerTimeChanged;
45 extern NSString *
const VLCMediaPlayerStateChanged;
46 extern NSString *
const VLCMediaPlayerTitleChanged;
47 extern NSString *
const VLCMediaPlayerChapterChanged;
52 typedef NS_ENUM(NSInteger, VLCMediaPlayerState)
54 VLCMediaPlayerStateStopped,
55 VLCMediaPlayerStateOpening,
56 VLCMediaPlayerStateBuffering,
57 VLCMediaPlayerStateEnded,
58 VLCMediaPlayerStateError,
59 VLCMediaPlayerStatePlaying,
60 VLCMediaPlayerStatePaused
66 typedef NS_ENUM(
unsigned, VLCMediaPlaybackNavigationAction)
68 VLCMediaPlaybackNavigationActionActivate = 0,
69 VLCMediaPlaybackNavigationActionUp,
70 VLCMediaPlaybackNavigationActionDown,
71 VLCMediaPlaybackNavigationActionLeft,
72 VLCMediaPlaybackNavigationActionRight
80 extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
94 - (void)mediaPlayerStateChanged:(NSNotification *)aNotification;
101 - (void)mediaPlayerTimeChanged:(NSNotification *)aNotification;
109 - (void)mediaPlayerTitleChanged:(NSNotification *)aNotification;
116 - (void)mediaPlayerChapterChanged:(NSNotification *)aNotification;
124 - (void)mediaPlayerSnapshot:(NSNotification *)aNotification;
142 @property (weak, nonatomic) id<VLCMediaPlayerDelegate>
delegate;
144 #if !TARGET_OS_IPHONE 151 - (instancetype)initWithVideoView:(
VLCVideoView *)aVideoView;
157 - (instancetype)initWithVideoLayer:(
VLCVideoLayer *)aVideoLayer;
164 - (instancetype)initWithOptions:(NSArray *)options;
171 - (instancetype)initWithLibVLCInstance:(
void *)playerInstance andLibrary:(
VLCLibrary *)library;
177 #pragma mark video functionality 179 #if !TARGET_OS_IPHONE 239 - (void)saveVideoSnapshotAt:(NSString *)path withWidth:(
int)width andHeight:(
int)height;
246 - (void)setDeinterlaceFilter: (NSString *)name;
271 @property (nonatomic)
float hue;
293 @property (nonatomic)
float rate;
306 @property (NS_NONATOMIC_IOSONLY, readonly) CGSize
videoSize;
321 @property (NS_NONATOMIC_IOSONLY, readonly)
float framesPerSecond
__attribute__((deprecated));
345 #pragma mark ES track handling 408 - (BOOL)openVideoSubTitlesFromFile:(NSString *)path __attribute__((deprecated));
413 typedef NS_ENUM(
unsigned, VLCMediaPlaybackSlaveType)
415 VLCMediaPlaybackSlaveTypeSubtitle = 0,
416 VLCMediaPlaybackSlaveTypeAudio
427 - (int)addPlaybackSlave:(NSURL *)slaveURL type:(VLCMediaPlaybackSlaveType)slaveType enforce:(BOOL)enforceSelection;
459 - (int)numberOfChaptersForTitle:(
int)titleIndex;
465 - (NSArray *)chaptersForTitleIndex:(
int)titleIndex __attribute__((deprecated));
490 - (NSArray *)chapterDescriptionsOfTitle:(
int)titleIndex;
507 @property (readonly) NSUInteger countOfTitles
__attribute__((deprecated));
512 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *titles
__attribute__((deprecated));
574 #pragma mark audio functionality 591 #pragma mark equalizer 606 - (void)resetEqualizerFromProfile:(
unsigned)profile;
630 - (CGFloat)frequencyOfBandAtIndex:(
unsigned)index;
636 - (void)setAmplification:(CGFloat)amplification forBand:(
unsigned)index;
642 - (CGFloat)amplificationOfBand:(
unsigned)index;
645 #pragma mark media handling 654 #pragma mark playback operations 686 - (void)fastForwardAtRate:(
float)rate;
697 - (void)rewindAtRate:(
float)rate;
703 - (void)jumpBackward:(
int)interval;
709 - (void)jumpForward:(
int)interval;
754 - (void)performNavigationAction:(VLCMediaPlaybackNavigationAction)action;
757 #pragma mark playback information 762 @property (NS_NONATOMIC_IOSONLY, getter=isPlaying, readonly) BOOL
playing;
768 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL
willPlay;
774 @property (NS_NONATOMIC_IOSONLY, readonly) VLCMediaPlayerState
state;
786 @property (NS_NONATOMIC_IOSONLY, getter=isSeekable, readonly) BOOL
seekable;
792 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL
canPause;
800 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *snapshots;
808 @property (NS_NONATOMIC_IOSONLY, readonly) UIImage *lastSnapshot;
Definition: VLCVideoView.h:31
Definition: VLCLibrary.h:41
Definition: VLCVideoLayer.h:30
Definition: VLCAudio.h:36