English 中文(简体)
iPhone media player framework : play multiple movie files seamlessly
原标题:

I am using the media player framework s MPMoviePlayerController to play local (on device) m4v files. Depending on user s selection, I want to be able to play multiple movies one after the other seamlessly.

To do this, I queue up the movies in an array and in my observer method that is called on the MPMoviePlayerPlaybackDidFinishNotification event which is triggered after one movie finishes, I play the next movie in the queue.

However, this is far from seamless. After each movie finishes, the iphone view transitions back to the base view from which the movieplayer was called and then picks up the movie called in the observer method (moviePlayBackDidFinish).

Is there a way to make the movies play one after the other seamlessly without breaking to transition back to the base view?

Just to be very clear, all the movies are local and bundled with the app as resources, not being streamed from anywhere.

问题回答

You can use AVMutableComposition. It combines media data from multiple file-based sources in a custom temporal arrangement, in order to present or process media data from multiple sources together.





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签