Explorar o código

update playback marker when selecting playback position.
reenable playback dismiss with menu button, the system no longer triggers dismissal since the tap gesture recognizer consumes the menu event.

Tobias Conradi %!s(int64=9) %!d(string=hai) anos
pai
achega
02703d2674
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      VLC for Apple TV/VLCFullscreenMovieTVViewController.m

+ 3 - 0
VLC for Apple TV/VLCFullscreenMovieTVViewController.m

@@ -169,6 +169,7 @@
     VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
     VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
     VLCTransportBar *bar = self.transportBar;
     VLCTransportBar *bar = self.transportBar;
     if (bar.scrubbing) {
     if (bar.scrubbing) {
+        bar.playbackFraction = bar.scrubbingFraction;
         [vpc.mediaPlayer setPosition:bar.scrubbingFraction];
         [vpc.mediaPlayer setPosition:bar.scrubbingFraction];
         [self stopScrubbing];
         [self stopScrubbing];
     }
     }
@@ -183,6 +184,8 @@
         }];
         }];
         [self updateTimeLabelsForScrubbingFraction:bar.playbackFraction];
         [self updateTimeLabelsForScrubbingFraction:bar.playbackFraction];
         [self stopScrubbing];
         [self stopScrubbing];
+    } else {
+        [self dismissViewControllerAnimated:YES completion:nil];
     }
     }
 }
 }