I have multiple MPMoviePlayerController
on a UITableView
(on different sections).
I know that only one can play on a specific time, but the thing is that if a different player was in "pause" mode, it gets stuck and I need to re-init it.
I can do a sophisticated [tableview reload]
on everything else but me - but it seems cycle consuming and idiotic (and not that simple to reload all but me)
Is there a better way? Maybe a 3rd party OS package that does handle this nicely?
Ok, first of all, why you need multiple MPMoviePlayerController
instances if you play only one video at a time? You could create one instance of MPMoviePlayerController
to play all videos one by one.
And, I think, AVPlayer
with AVPlayerLayer
would be more extensible solution for playing videos on iOS. Take a look at the AVFoundation
framework reference for more information about the AVPlayer
here.
Good Luck!