Skip to content

Instantly share code, notes, and snippets.

@priore
Created November 12, 2014 11:14
Show Gist options
  • Save priore/eb8ebee056375d7f8a0e to your computer and use it in GitHub Desktop.
Save priore/eb8ebee056375d7f8a0e to your computer and use it in GitHub Desktop.
Fix the crash in iOS6 when you start a not supported video stream
// Fix the crash in iOS6 when you start a not supported video stream
// note: do not use initWithUrl, instead use setContentURL
MPMoviePlayerViewController viewController = [[MPMoviePlayerViewController alloc] init];
viewController.moviePlayer.movieSourceType = MPMovieSourceTypeStreaming;
viewController.moviePlayer.controlStyle = MPMovieControlStyleFullscreen;
[viewController.moviePlayer setContentURL:url];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment