additionally, this changes the playback behavior of VLCKit. play-and-pause is no longer enabled.
- (void)setVideoAspectRatio:(char *)value;
- (char *)videoAspectRatio;
- (void)setVideoSubTitles:(int)value;
-- (int)videoSubTitles;
+- (int)countOfVideoSubTitles;
+- (int)currentVideoSubTitles;
- (void)setVideoCropGeometry:(char *)value;
- (char *)videoCropGeometry;
@property (readonly) int fps;
- (void)setChapter:(int)value;
-- (int)chapter;
+- (int)currentChapter;
- (int)countOfChapters;
-- (void)setTitle:(int)value;
-- (int)title;
+- (void)setCurrentTitle:(int)value;
+- (int)currentTitle;
- (int)countOfTitles;
/* Audio Options */
- (void)setAudioTrack:(int)value;
-- (int)audioTrack;
+- (int)currentAudioTrack;
- (int)countOfAudioTracks;
- (void)setAudioChannel:(int)value;
[defaultParams addObject:@"--verbose=2"]; // Don't polute the log
[defaultParams addObject:@"--vout=minimal_macosx"];
[defaultParams addObject:@"--no-color"];
- [defaultParams addObject:@"--play-and-pause"]; // When ending a stream pause it instead of stopping it
vlcParams = defaultParams;
}
catch_exception( &ex );
}
-- (int)videoSubTitles
+- (int)countOfVideoSubTitles
{
libvlc_exception_t ex;
libvlc_exception_init( &ex );
return result;
}
+- (int)currentVideoSubTitles
+{
+ libvlc_exception_t ex;
+ libvlc_exception_init( &ex );
+ int result = libvlc_video_get_spu( instance, &ex );
+ if (libvlc_exception_raised(&ex))
+ {
+ libvlc_exception_clear(&ex);
+ return -1;
+ }
+ else
+ {
+ libvlc_exception_clear(&ex);
+ return result;
+ }
+}
+
- (void)setVideoCropGeometry:(char *)value
{
libvlc_exception_t ex;
catch_exception( &ex );
}
-- (void)setTitle:(int)value
+- (void)setCurrentTitle:(int)value
{
libvlc_exception_t ex;
libvlc_exception_init( &ex );
catch_exception( &ex );
}
-- (int)audioTrack
+- (int)currentAudioTrack
{
libvlc_exception_t ex;
libvlc_exception_init( &ex );