I am wondering how to most efficiently play a series of video with MPMoviePlayerViewController?
For example, I would like to play in a series the following:
Video1.mp4 Video2.mp4 Video3.mp4
and so on...
Any suggestions appreciated.
I am wondering how to most efficiently play a series of video with MPMoviePlayerViewController?
For example, I would like to play in a series the following:
Video1.mp4 Video2.mp4 Video3.mp4
and so on...
Any suggestions appreciated.
Use NSNotificationCenter
to monitor for the MPMoviePlayerPlaybackDidFinishNotification
notification. Then, set up the player with the next item you wish to play.
You can register for the notification MPMoviePlayerPlaybackDidFinishNotification
with [NSNotificationCenter defaultCenter]
. Once you receive that notification, just load the next video and start playback.
Have a look at the respective class documentations for additional details.