1

i tried following-

created different instances of MPMoviePlayer on a single view but at a time only one video is playing. i am not getting how to do this. I have to do this for live camera video streaming on single view that is 4 camera output on single view. just give me the idea or way.

4

2 回答 2

4

As explained in apple documentation you can not do this using MPMoviePlayerController.

Although you can create multiple MPMoviePlayerController objects and present their
views in your interface, only one movie player at a time can play its movie.

So checkout this nice tutorial for multiple-video-playback-on-ios.

and check this nice sample code also.

So finally you can use AVPlayer for this because you can have multiple instances of AVPlayer playing the same video at the same time. .

于 2013-05-28T10:14:02.033 回答
0

MPMovieplayer can play only a single video at a time.Concurrancy support you have to look more on AVPlayer.I saw one example of it in SO itself .

于 2013-05-28T10:13:34.560 回答