Browse Source

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

Tobias Conradi 9 years ago
parent
commit
dafdd50596
1 changed files with 1 additions and 1 deletions
  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];
     }