Commit b16ede5c authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCMediaPlayer: expand the API by adding setter/getter for SPU delay

parent 61b49ae9
......@@ -207,6 +207,14 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
*/
- (BOOL)openVideoSubTitlesFromFile:(NSString *)path;
/**
* Get the current subtitle delay. Positive values means subtitles are being
* displayed later, negative values earlier.
*
* \return time (in microseconds) the display of subtitles is being delayed
*/
@property (readwrite) NSInteger currentVideoSubTitleDelay;
/**
* Chapter selection and enumeration, it is bound
* to a title option.
......
......@@ -343,6 +343,16 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
return [NSArray arrayWithArray: tempArray];
}
- (void)setCurrentVideoSubTitleDelay:(NSInteger)index
{
libvlc_video_set_spu_delay(instance, index);
}
- (NSInteger)currentVideoSubTitleDelay
{
return libvlc_video_get_spu_delay(instance);
}
#pragma mark -
#pragma mark Video Crop geometry
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment