Created
November 12, 2014 11:14
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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