views:

732

answers:

2

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.

A: 

please search the question, which has been asked for many times. Honestly, there is no seamless method so far. What we can do is just to put a image (the last/first frame of the previous/next video) between the gap.

vicky
A: 

im still trying to figure this out.. 1.can we have multiple video files within one seek bar??? 2.what if these multiple files are on a HTTP streaming media server, what would i have to do to reference to those videos from within one seek bar?

rakshak
Simple answer is no. If you have http streaming, you are better off stitching your files together on the server. You can show "seamless" videos on the iPad though - which basically means no gaps between videos but each vid would still have its own seekbar.
The Fat Oracle