开发者

videos play on iPhone but not on iPad with SDK 4.1

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. :(

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜