Commit 5b742eda authored by Felix Paul Kühne's avatar Felix Paul Kühne

vpc: add native support for media lists

parent a235faa2
......@@ -91,4 +91,6 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
- (void)setNeedsMetadataUpdate;
- (void)scheduleSleepTimerWithInterval:(NSTimeInterval)timeInterval;
- (void)playMediaList:(VLCMediaList *)mediaList firstIndex:(int)index;
@end
......@@ -145,6 +145,21 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
return YES;
}
- (void)playMediaList:(VLCMediaList *)mediaList firstIndex:(int)index
{
self.mediaList = mediaList;
self.itemInMediaListToBePlayedFirst = index;
self.pathToExternalSubtitlesFile = nil;
if (self.activePlaybackSession) {
self.sessionWillRestart = YES;
[self stopPlayback];
} else {
self.sessionWillRestart = NO;
[self startPlayback];
}
}
- (void)startPlayback
{
if (_playerIsSetup)
......
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