浏览代码

iOS: Remove string status on tap to play/pause

When tapped to play/pause the current status of the player were shown with a string.
This removes the said string and replaces it by showing the video control if it isn't
on the screen.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 年之前
父节点
当前提交
b7ac9ad4c6
共有 1 个文件被更改,包括 3 次插入8 次删除
  1. 3 8
      Sources/VLCMovieViewController.m

+ 3 - 8
Sources/VLCMovieViewController.m

@@ -1429,14 +1429,9 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
     if (!_playPauseGestureEnabled)
         return;
 
-
-    if ([_vpc.mediaPlayer isPlaying]) {
-        [_vpc.listPlayer pause];
-        [self.statusLabel showStatusMessage:@"  ▌▌"];
-    } else {
-        [_vpc.listPlayer play];
-        [self.statusLabel showStatusMessage:@" ►"];
-    }
+    [_vpc.mediaPlayer isPlaying] ? [_vpc.listPlayer pause] : [_vpc.listPlayer play];
+    if (_controlsHidden)
+        [self setControlsHidden:NO animated:YES];
 }
 
 - (VLCPanType)detectPanTypeForPan:(UIPanGestureRecognizer*)panRecognizer