Play multiple videos

前端 未结 3 947
温柔的废话
温柔的废话 2021-01-25 07:01

I\'m actually using the MPMoviePlayerController for play video in my iPad app.

Actually, I can easly play 1 video but I\'m trying to play in the same time 2

相关标签:
3条回答
  • 2021-01-25 07:46

    As Safecase mentioned, MPMovieplayerController will only allow one video to be played at a time. But here is an example to play two simultaneously with the use of AVFoundation:

    http://www.sdkboy.com/?p=66

    Hope this helps!

    0 讨论(0)
  • 2021-01-25 07:52

    What I did is display 4 videos using AVPlayer, but those video are made from 4 another video (I create each videos with AVFoundation). Si I'm able the display thousand and thousand videos in only 4 players, pretty good performances when you play the videos !

    0 讨论(0)
  • 2021-01-25 07:56

    If you want to play more than one video at the same time you have to use AVPlayer frameworks. MPMovie only allowed you play one video at a time.

    See AVPlayer documentation.

    0 讨论(0)
提交回复
热议问题