Multiple MPMoviePlayerControllers on iOS 3.2/4.0

亡梦爱人 提交于 2019-12-21 19:49:46

问题


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

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.

Thanks in advance.

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


回答1:


There is a restriction in the SDK doc.

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

Check here: http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMoviePlayerController_Class/MPMoviePlayerController/MPMoviePlayerController.html

It's in the Overview section.



来源:https://stackoverflow.com/questions/3716352/multiple-mpmovieplayercontrollers-on-ios-3-2-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!