priore

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

Jun 9th, 2014
777
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