SHARE
TWEET

Fix the crash in iOS6 when you start a not supported video

priore Jun 9th, 2014 682 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Fix the crash in iOS6 when you start a not supported video stream
  2. // note: do not use initWithUrl, instead use setContentURL
  3. MPMoviePlayerViewController viewController = [[MPMoviePlayerViewController alloc] init];
  4. viewController.moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
  5. viewController.moviePlayer.controlStyle = MPMovieControlStyleFullscreen;
  6. [viewController.moviePlayer setContentURL:url];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top