28 #import <Foundation/Foundation.h> 30 # import <CoreGraphics/CoreGraphics.h> 31 # import <UIKit/UIKit.h> 47 extern NSString *
const VLCMediaPlayerTimeChanged;
48 extern NSString *
const VLCMediaPlayerStateChanged;
49 extern NSString *
const VLCMediaPlayerTitleChanged;
50 extern NSString *
const VLCMediaPlayerChapterChanged;
55 typedef NS_ENUM(NSInteger, VLCMediaPlayerState)
57 VLCMediaPlayerStateStopped,
58 VLCMediaPlayerStateOpening,
59 VLCMediaPlayerStateBuffering,
60 VLCMediaPlayerStateEnded,
61 VLCMediaPlayerStateError,
62 VLCMediaPlayerStatePlaying,
63 VLCMediaPlayerStatePaused,
64 VLCMediaPlayerStateESAdded
70 typedef NS_ENUM(
unsigned, VLCMediaPlaybackNavigationAction)
72 VLCMediaPlaybackNavigationActionActivate = 0,
73 VLCMediaPlaybackNavigationActionUp,
74 VLCMediaPlaybackNavigationActionDown,
75 VLCMediaPlaybackNavigationActionLeft,
76 VLCMediaPlaybackNavigationActionRight
82 typedef NS_ENUM(NSInteger, VLCDeinterlace)
84 VLCDeinterlaceAuto = -1,
94 extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
108 - (void)mediaPlayerStateChanged:(NSNotification *)aNotification;
115 - (void)mediaPlayerTimeChanged:(NSNotification *)aNotification;
123 - (void)mediaPlayerTitleChanged:(NSNotification *)aNotification;
130 - (void)mediaPlayerChapterChanged:(NSNotification *)aNotification;
137 - (void)mediaPlayerSnapshot:(NSNotification *)aNotification;
150 - (void)mediaPlayer:(
VLCMediaPlayer *)player recordingStoppedAtPath:(NSString *)path;
167 @property (weak, nonatomic) id<VLCMediaPlayerDelegate>
delegate;
169 #if !TARGET_OS_IPHONE 176 - (instancetype)initWithVideoView:(
VLCVideoView *)aVideoView;
182 - (instancetype)initWithVideoLayer:(
VLCVideoLayer *)aVideoLayer;
189 - (instancetype)initWithOptions:(NSArray *)options;
196 - (instancetype)initWithLibVLCInstance:(
void *)playerInstance andLibrary:(
VLCLibrary *)library;
202 #pragma mark video functionality 204 #if !TARGET_OS_IPHONE 264 - (void)saveVideoSnapshotAt:(NSString *)path withWidth:(
int)width andHeight:(
int)height;
271 - (void)setDeinterlaceFilter: (NSString *)name;
279 - (void)setDeinterlace:(VLCDeinterlace)deinterlace withFilter:(NSString *)name;
304 @property (nonatomic)
float hue;
326 @property (nonatomic)
float rate;
339 @property (NS_NONATOMIC_IOSONLY, readonly) CGSize
videoSize;
354 @property (NS_NONATOMIC_IOSONLY, readonly)
float framesPerSecond
__attribute__((deprecated));
378 #pragma mark ES track handling 439 - (BOOL)openVideoSubTitlesFromFile:(NSString *)path __attribute__((deprecated));
444 typedef NS_ENUM(
unsigned, VLCMediaPlaybackSlaveType)
446 VLCMediaPlaybackSlaveTypeSubtitle = 0,
447 VLCMediaPlaybackSlaveTypeAudio
458 - (int)addPlaybackSlave:(NSURL *)slaveURL type:(VLCMediaPlaybackSlaveType)slaveType enforce:(BOOL)enforceSelection;
490 - (int)numberOfChaptersForTitle:(
int)titleIndex;
496 - (NSArray *)chaptersForTitleIndex:(
int)titleIndex __attribute__((deprecated));
521 - (NSArray *)chapterDescriptionsOfTitle:(
int)titleIndex;
538 @property (readonly) NSUInteger countOfTitles
__attribute__((deprecated));
543 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *titles
__attribute__((deprecated));
605 #pragma mark audio functionality 622 #pragma mark equalizer 637 - (void)resetEqualizerFromProfile:(
unsigned)profile;
662 - (CGFloat)frequencyOfBandAtIndex:(
unsigned)index;
668 - (void)setAmplification:(CGFloat)amplification forBand:(
unsigned)index;
674 - (CGFloat)amplificationOfBand:(
unsigned)index;
677 #pragma mark media handling 686 #pragma mark playback operations 718 - (void)fastForwardAtRate:(
float)rate;
729 - (void)rewindAtRate:(
float)rate;
735 - (void)jumpBackward:(
int)interval;
741 - (void)jumpForward:(
int)interval;
786 - (void)performNavigationAction:(VLCMediaPlaybackNavigationAction)action;
799 - (BOOL)updateViewpoint:(
float)yaw pitch:(
float)pitch roll:(
float)roll fov:(
float)fov absolute:(BOOL)absolute;
806 @property (nonatomic)
float yaw;
820 @property (nonatomic)
float roll;
827 @property (nonatomic)
float fov;
830 #pragma mark playback information 835 @property (NS_NONATOMIC_IOSONLY, getter=isPlaying, readonly) BOOL
playing;
841 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL
willPlay;
847 @property (NS_NONATOMIC_IOSONLY, readonly) VLCMediaPlayerState
state;
860 @property (NS_NONATOMIC_IOSONLY, getter=isSeekable, readonly) BOOL
seekable;
866 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL
canPause;
873 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *
snapshots;
882 @property (NS_NONATOMIC_IOSONLY, readonly) UIImage *
lastSnapshot;
898 - (BOOL)startRecordingAtPath:(NSString *)path;
907 #pragma mark Renderer
Definition: VLCVideoView.h:31
Definition: VLCRendererItem.h:36
Definition: VLCLibrary.h:41
Definition: VLCVideoLayer.h:30
Definition: VLCAudio.h:36