MPMoviePlayerController breaks/stops after going to fullscreen in iOS6

后端 未结 11 1053
南方客
南方客 2020-12-24 07:10

I have a MPMoviewPlayerViewController embedded into an UIView object. When I start the player in the embedded mode everything works fine and as exp

11条回答
  •  不知归路
    2020-12-24 07:35

    The solution is create a property to retain the MPMoviePlayerController class

    @property (nonatomic, retain) MPMoviePlayerController *moviePlayerController;
    

    and use the property in your controller

    self.moviePlayerController = [[MPMoviePlayerController alloc] init];
    
    [_viewMediaPlayer addSubview:self.moviePlayerController.view];
    

    there is a bug in iOS6 and the MPMoviePlayerController is deallocated when entry in fullscreen mode http://openradar.appspot.com/12327997

提交回复
热议问题