فهرست منبع

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