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

playback: push fullscreen video screen if the user starts playback of a media with a video track

parent 7529df34
......@@ -48,6 +48,7 @@
BOOL _mediaIsAudioOnly;
BOOL _needsMetadataUpdate;
BOOL _mediaWasJustStarted;
}
@end
......@@ -307,18 +308,19 @@
_mediaPlayer.position = lastPosition;
[self subscribeRemoteCommands];
[[(VLCAppDelegate *)[UIApplication sharedApplication].delegate playlistViewController] displayMiniPlaybackViewIfNeeded];
_playerIsSetup = YES;
_mediaWasJustStarted = YES;
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 1)
[self _playNewMedia];
else {
else
[self stopPlayback];
}
}
- (void)stopPlayback
......@@ -795,6 +797,9 @@
if (title.length < 1)
title = [[_mediaPlayer.media url] lastPathComponent];
} else if (_mediaWasJustStarted) {
_mediaWasJustStarted = NO;
[(VLCAppDelegate *)[UIApplication sharedApplication].delegate presentMovieViewController];
}
/* populate delegate with metadata info */
......
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