فهرست منبع

VLCFullscreenMovieTVViewController: Remove display of playback control on mediaPlayerStateChanged

Like `VLCMovieViewController` we do not need to show/hide the playback
controls in `mediaPlayerStateChanged`.
Additionally, closes #141.

Signed-off-by: Felix Paul Kühne <felix@feepk.net>
Soomin Lee 7 سال پیش
والد
کامیت
e19dc6f9eb
1فایلهای تغییر یافته به همراه5 افزوده شده و 8 حذف شده
  1. 5 8
      Apple-TV/Playback/VLCFullscreenMovieTVViewController.m

+ 5 - 8
Apple-TV/Playback/VLCFullscreenMovieTVViewController.m

@@ -827,15 +827,12 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
         if (self.movieView.subviews.count < 2) {
             controller.videoOutputView = self.movieView;
         }
-        [self hidePlaybackControlsIfNeededAfterDelay];
-    } else {
-        [self showPlaybackControlsIfNeededForUserInteraction];
-    }
 
-    if (controller.isPlaying && !self.bufferingLabel.hidden) {
-        [UIView animateWithDuration:.3 animations:^{
-            self.bufferingLabel.hidden = YES;
-        }];
+        if (!self.bufferingLabel.hidden) {
+            [UIView animateWithDuration:.3 animations:^{
+                self.bufferingLabel.hidden = YES;
+            }];
+        }
     }
 }