Browse Source

iOS: Show video control on orientation change during playback

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 years ago
parent
commit
3d496147da
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Sources/VLCMovieViewController.m

+ 6 - 0
Sources/VLCMovieViewController.m

@@ -1678,6 +1678,12 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
     }
     }
 }
 }
 
 
+- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
+{
+    if (_vpc.activePlaybackSession && _controlsHidden)
+        [self setControlsHidden:NO animated:YES];
+}
+
 #pragma mark - External Display
 #pragma mark - External Display
 
 
 - (void)showOnExternalDisplay
 - (void)showOnExternalDisplay