Objective-C Tips & Trick - Prioregroup.com
[Objective-C] Fix the crash in iOS6 when you start a not supported video
       
back

// 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];






Copyright © 1996-2018 Centro Studi Informatica di Danilo Priore. All rights reserved. P.I.10149810581.
prioregroup.com