How to play next video in MPMoviePlayer?
I have implement an application.In which there is list of videos.when user touch on the video then video play in MPMoviePlayer.But when video is finished then 开发者_如何学Pythoni want to play another video automatically.Is it possible?
Yes. Do you want it to play another one randomly? You could do that. Or do you have an NSArray that contains all the different MPMoviePlayer URLs to play in order? If you do, then loop through the array objects and play each. You will have to have a MPMoviePlayerPlaybackDidFinishNotification
to know when each videos finish so you can start the next one.
精彩评论