Commit 987c2f76 authored by Felix Paul Kühne's avatar Felix Paul Kühne

ATV: don't fallback on mini player but stop playback when we leave fullscreen

parent c3869d99
......@@ -273,6 +273,9 @@ static NSString *const VLCPlayerDisplayControllerDisplayModeKey = @"VLCPlayerDis
- (void)_showHideMiniPlaybackView
{
#if TARGET_OS_TV
return;
#else
VLCPlaybackController *playbackController = [VLCPlaybackController sharedInstance];
UIView<VLCPlaybackControllerDelegate, VLCMiniPlaybackViewInterface> *miniPlaybackView = self.miniPlaybackView;
const NSTimeInterval animationDuration = 0.25;
......@@ -333,6 +336,7 @@ static NSString *const VLCPlayerDisplayControllerDisplayModeKey = @"VLCPlayerDis
}
completion:completionBlock];
}
#endif
}
@end
......@@ -85,9 +85,9 @@
_viewAppeared = NO;
[self.navigationController setNavigationBarHidden:NO animated:YES];
[super viewWillDisappear:animated];
[vpc stopPlayback];
[[UIApplication sharedApplication] sendAction:@selector(closeFullscreenPlayback) to:nil from:self forEvent:nil];
[super viewWillDisappear:animated];
}
- (BOOL)canBecomeFirstResponder
......
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