Przeglądaj źródła

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 lat temu
rodzic
commit
e19dc6f9eb

+ 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;
+            }];
+        }
     }
 }