Explorar el Código

fix scrubbing: playback has to be started again before the playback position is set, otherwise the player buffers infinitely

Tobias Conradi hace 9 años
padre
commit
dafdd50596
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Apple-TV/Playback/VLCFullscreenMovieTVViewController.m

+ 1 - 1
Apple-TV/Playback/VLCFullscreenMovieTVViewController.m

@@ -241,8 +241,8 @@ typedef NS_ENUM(NSInteger, VLCPlayerScanState)
     VLCTransportBar *bar = self.transportBar;
     if (bar.scrubbing) {
         bar.playbackFraction = bar.scrubbingFraction;
-        [vpc.mediaPlayer setPosition:bar.scrubbingFraction];
         [self stopScrubbing];
+        [vpc.mediaPlayer setPosition:bar.scrubbingFraction];
     } else if(vpc.mediaPlayer.playing) {
         [vpc.mediaPlayer pause];
     }