浏览代码

VLCFullscreenMovieTVViewController: resume playback after scrubbing

These two lines were removed in the refactoring and you had to press play twice to resume playback.
Adding these lines again fixes this behavior again
Carola Nitz 7 年之前
父节点
当前提交
6a5ff94848
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Apple-TV/Playback/VLCFullscreenMovieTVViewController.m

+ 6 - 0
Apple-TV/Playback/VLCFullscreenMovieTVViewController.m

@@ -689,13 +689,19 @@ static const NSInteger VLCJumpInterval = 10000; // 10 seconds
 {
     NSAssert(self.isSeekable, @"Tried to seek while not media is not seekable.");
 
+    VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
     self.transportBar.scrubbing = YES;
     [self updateDimmingView];
+    if (vpc.isPlaying) {
+        [vpc playPause];
+    }
 }
 - (void)stopScrubbing
 {
     self.transportBar.scrubbing = NO;
     [self updateDimmingView];
+    VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
+    [vpc playPause];
 }
 
 - (void)updateDimmingView