Commit 3c7d82ca authored by Felix Paul Kühne's avatar Felix Paul Kühne

app delegate: continue playback in fullscreen when previous item was playing in fullscreen already

parent 5955353d
......@@ -556,6 +556,12 @@
- (void)openMediaFromManagedObject:(NSManagedObject *)mediaObject
{
BOOL retainFullscreenPlayback = false;
if (self.movieViewController.presentingViewController) {
NSLog(@"movie player is open");
retainFullscreenPlayback = YES;
}
VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
if ([mediaObject isKindOfClass:[MLFile class]])
......@@ -567,6 +573,8 @@
[(MLFile *)vpc.fileFromMediaLibrary setUnread:@(NO)];
[vpc startPlayback];
if (retainFullscreenPlayback)
[self presentMovieViewController];
}
- (void)openMovieFromURL:(NSURL *)url
......
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