iOS 3.2 / 4.0上的多个MPMoviePlayerControllers [英] Multiple MPMoviePlayerControllers on iOS 3.2/4.0

查看:82
本文介绍了iOS 3.2 / 4.0上的多个MPMoviePlayerControllers的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是我可以在一个UIViewController中同时拥有两个MPMoviePlayerController实例吗?

The question is can I have two instances of MPMoviePlayerController simultaneously in one UIViewController?

我正在尝试在iPad应用中的两部电影之间创建平滑过渡,但是当我创建第二个MPMoviePlayerController时,第一个播放停止并且无法恢复。我没有发现在Apple文档中有多个MPMoviePlayerControllers有任何限制。

I'm trying to create a smooth transition between two movies in iPad app, but when I create the second MPMoviePlayerController the playback of first one is stopped and can't be resumed. I didn't found any restriction for having multiple MPMoviePlayerControllers in Apple documentation.

提前致谢。

P.S。关于电影之间平滑过渡的任何其他想法也将受到赞赏。

P.S. Any other ideas about smooth transition between movies will be also appreciated.

推荐答案

SDK文档中存在限制。

There is a restriction in the SDK doc.

注意:虽然您可以创建多个MPMoviePlayerController对象并在界面中显示其视图,但一次只能有一个控制器播放其影片。
Blockquote

Note: Although you may create multiple MPMoviePlayerController objects and present their views in your interface, only one controller at a time may play its movie. Blockquote

点击此处: http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMoviePlayerController_Class/MPMoviePlayerController/MPMoviePlayerController.html

它位于概述部分。

这篇关于iOS 3.2 / 4.0上的多个MPMoviePlayerControllers的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆