28 #import <Foundation/Foundation.h> 30 # import <CoreGraphics/CoreGraphics.h> 31 # import <UIKit/UIKit.h> 46 extern NSString *
const VLCMediaPlayerTimeChanged;
47 extern NSString *
const VLCMediaPlayerStateChanged;
48 extern NSString *
const VLCMediaPlayerTitleChanged;
49 extern NSString *
const VLCMediaPlayerChapterChanged;
54 typedef NS_ENUM(NSInteger, VLCMediaPlayerState)
56 VLCMediaPlayerStateStopped,
57 VLCMediaPlayerStateOpening,
58 VLCMediaPlayerStateBuffering,
59 VLCMediaPlayerStateEnded,
60 VLCMediaPlayerStateError,
61 VLCMediaPlayerStatePlaying,
62 VLCMediaPlayerStatePaused,
63 VLCMediaPlayerStateESAdded
69 typedef NS_ENUM(
unsigned, VLCMediaPlaybackNavigationAction)
71 VLCMediaPlaybackNavigationActionActivate = 0,
72 VLCMediaPlaybackNavigationActionUp,
73 VLCMediaPlaybackNavigationActionDown,
74 VLCMediaPlaybackNavigationActionLeft,
75 VLCMediaPlaybackNavigationActionRight
81 typedef NS_ENUM(NSInteger, VLCDeinterlace)
83 VLCDeinterlaceAuto = -1,
93 extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
107 - (void)mediaPlayerStateChanged:(NSNotification *)aNotification;
114 - (void)mediaPlayerTimeChanged:(NSNotification *)aNotification;
122 - (void)mediaPlayerTitleChanged:(NSNotification *)aNotification;
129 - (void)mediaPlayerChapterChanged:(NSNotification *)aNotification;
136 - (void)mediaPlayerSnapshot:(NSNotification *)aNotification;
153 @property (weak, nonatomic) id<VLCMediaPlayerDelegate>
delegate;
155 #if !TARGET_OS_IPHONE 162 - (instancetype)initWithVideoView:(
VLCVideoView *)aVideoView;
168 - (instancetype)initWithVideoLayer:(
VLCVideoLayer *)aVideoLayer;
175 - (instancetype)initWithOptions:(NSArray *)options;
182 - (instancetype)initWithLibVLCInstance:(
void *)playerInstance andLibrary:(
VLCLibrary *)library;
188 #pragma mark video functionality 190 #if !TARGET_OS_IPHONE 250 - (void)saveVideoSnapshotAt:(NSString *)path withWidth:(
int)width andHeight:(
int)height;
257 - (void)setDeinterlaceFilter: (NSString *)name;
265 - (void)setDeinterlace:(VLCDeinterlace)deinterlace withFilter:(NSString *)name;
290 @property (nonatomic)
float hue;
312 @property (nonatomic)
float rate;
325 @property (NS_NONATOMIC_IOSONLY, readonly) CGSize
videoSize;
340 @property (NS_NONATOMIC_IOSONLY, readonly)
float framesPerSecond
__attribute__((deprecated));
364 #pragma mark ES track handling 425 - (BOOL)openVideoSubTitlesFromFile:(NSString *)path __attribute__((deprecated));
430 typedef NS_ENUM(
unsigned, VLCMediaPlaybackSlaveType)
432 VLCMediaPlaybackSlaveTypeSubtitle = 0,
433 VLCMediaPlaybackSlaveTypeAudio
444 - (int)addPlaybackSlave:(NSURL *)slaveURL type:(VLCMediaPlaybackSlaveType)slaveType enforce:(BOOL)enforceSelection;
476 - (int)numberOfChaptersForTitle:(
int)titleIndex;
482 - (NSArray *)chaptersForTitleIndex:(
int)titleIndex __attribute__((deprecated));
507 - (NSArray *)chapterDescriptionsOfTitle:(
int)titleIndex;
524 @property (readonly) NSUInteger countOfTitles
__attribute__((deprecated));
529 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *titles
__attribute__((deprecated));
591 #pragma mark audio functionality 608 #pragma mark equalizer 623 - (void)resetEqualizerFromProfile:(
unsigned)profile;
648 - (CGFloat)frequencyOfBandAtIndex:(
unsigned)index;
654 - (void)setAmplification:(CGFloat)amplification forBand:(
unsigned)index;
660 - (CGFloat)amplificationOfBand:(
unsigned)index;
663 #pragma mark media handling 672 #pragma mark playback operations 704 - (void)fastForwardAtRate:(
float)rate;
715 - (void)rewindAtRate:(
float)rate;
721 - (void)jumpBackward:(
int)interval;
727 - (void)jumpForward:(
int)interval;
772 - (void)performNavigationAction:(VLCMediaPlaybackNavigationAction)action;
785 - (BOOL)updateViewpoint:(
float)yaw pitch:(
float)pitch roll:(
float)roll fov:(
float)fov absolute:(BOOL)absolute;
792 @property (nonatomic)
float yaw;
806 @property (nonatomic)
float roll;
813 @property (nonatomic)
float fov;
816 #pragma mark playback information 821 @property (NS_NONATOMIC_IOSONLY, getter=isPlaying, readonly) BOOL
playing;
827 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL
willPlay;
833 @property (NS_NONATOMIC_IOSONLY, readonly) VLCMediaPlayerState
state;
845 @property (NS_NONATOMIC_IOSONLY, getter=isSeekable, readonly) BOOL
seekable;
851 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL
canPause;
858 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *
snapshots;
867 @property (NS_NONATOMIC_IOSONLY, readonly) UIImage *
lastSnapshot;
879 #pragma mark Renderer
Definition: VLCVideoView.h:31
Definition: VLCRendererItem.h:36
Definition: VLCLibrary.h:41
Definition: VLCVideoLayer.h:30
Definition: VLCAudio.h:36