iOS 4 + MPMoviePlayerController [英] iOS 4 + MPMoviePlayerController
问题描述
我开发了可在IPad和IPhone上运行的通用应用程序。我正在使用MPMoviePlayerController的一个组件。
I have developed universal application which runs on both IPad and IPhone. I am using one component of MPMoviePlayerController in this.
现在iOS4已经发布了,今天我收到了关于我的应用程序拒绝的坏消息,因为这个MPMoviePlayerController崩溃了。
now the iOS4 is released, Today I got a bad news about my application rejection due to this MPMoviePlayerController crash.
iDemoPlayer= [[MPMoviePlayerController alloc] initWithContentURL:aUrl];
[iDemoPlayer play];
这是我播放视频的src代码。
This is my src code for playing the video.
在iPhone OS 4.0版本中,我发现
In iPhone os 4.0 release I found that
如果您将Universal应用程序
与iPhone SDK 3.2相关联,当你在
iOS 4及更高版本上运行时,你必须是
准备在你的界面中嵌入电影播放器
视图
"If you link a Universal application against iPhone SDK 3.2, you must be prepared to embed the movie player view in your interface when running on iOS 4 and later"
参考
http://developer.apple.com/iphone/library/releasenotes/General/RN-iPhoneSDK-4_0/index.html
你能帮助我吗,我需要做什么更新才能再次接受!!!!!!
Can you guys help me,what else updation I need to make so that it will be accepted again!!!!!!
谢谢,
Sagar
推荐答案
Ugh,Symbian变量命名约定。
Ugh, Symbian variable naming conventions.
if ([MPMoviePlayerController instancesRespondToSelector:@selector(view)]) {
// Running on 3.2+
iDemoPlayer2 = [[MPMoviePlayerViewController alloc] initWithContentURL:aUrl];
// Assuming self is a UIViewController
[self presentMoviePlayerViewControllerAnimated:iDemoPlayer2];
// This line might be needed
[self.moviePlayer play];
} else {
iDemoPlayer= [[MPMoviePlayerController alloc] initWithContentURL:aUrl];
[iDemoPlayer play];
}
这篇关于iOS 4 + MPMoviePlayerController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!