浏览代码

iOS: Show video control on orientation change during playback

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 年之前
父节点
当前提交
3d496147da
共有 1 个文件被更改,包括 6 次插入0 次删除
  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
 
 - (void)showOnExternalDisplay