Вопрос

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.

Это было полезно?

Решение

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. .

Другие советы

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 .

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top