소스 검색

video VC: don't stop playback on close and make sure to always be the VPC's delegate if displayed

Felix Paul Kühne 10 년 전
부모
커밋
03283d8622
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      Sources/VLCMovieViewController.m

+ 3 - 3
Sources/VLCMovieViewController.m

@@ -433,7 +433,9 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
             [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
     }
 
-    [VLCPlaybackController sharedInstance].videoOutputView = self.movieView;
+    VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
+    vpc.videoOutputView = self.movieView;
+    vpc.delegate = self;
 
     [self setControlsHidden:NO animated:YES];
 }
@@ -660,8 +662,6 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
     LOCKCHECK;
 
     [self presentingViewControllerShouldBeClosed:nil];
-
-    [[VLCPlaybackController sharedInstance] stopPlayback];
 }
 
 - (IBAction)positionSliderAction:(UISlider *)sender