Browse Source

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 years ago
parent
commit
b7ac9ad4c6
1 changed files with 3 additions and 8 deletions
  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