Hi I have several apps using a MPMoviePlayerController. These apps play HTTP Live streaming video fine when compiled with the older SDKs but with 4.1 on the iPad (3.2) the apps will only play audio and the standard controls are not showing. On iPhone devices (any version) it plays the videos just fine.
The code looks like this:
mMoviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:mediaURL];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlayBackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:mMoviePlayer];
mMoviePlayer.backgroundColor = [UICol开发者_如何学Cor blackColor];
mMoviePlayer.movieControlMode = MPMovieControlModeDefault;
[mMoviePlayer play];
As it turns out - now you have to use MPMoviePlayerViewController
Using MPMoviePlayerViewController in SDK 3.2 for iPad
Thanks for the update Apple. :(
精彩评论