Multiple Video, Same Screen

前端 未结 3 1163
忘掉有多难
忘掉有多难 2020-12-05 01:49

Is it possible to play more than one video the same time / on the same screen with iOS?

(E.g. Picture-in-Picture mode or split screen.)

相关标签:
3条回答
  • 2020-12-05 02:17

    Step by step and full source code on how to do this: http://iosguy.com/2012/01/11/multiple-video-playback-on-ios/

    0 讨论(0)
  • 2020-12-05 02:24

    You can't using MPMoviePlayerController. The documentation states that clearly..

    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.

    But I think you can do this with lower level AVFoundation framework..But I never tried it..See this

    0 讨论(0)
  • 2020-12-05 02:24

    To update the answers up today's SDKs, with the SDK for iOS 5 (and probably back to 4) you can use AVFoundation to play video in an AVPlayerLayer and add a number of layers to a view. I've confirmed that three separate WQVGA h.264 video streams can play on the same view at the same time under both iOS 4.3.5 on an iPhone 3GS and iOS 5.0 on an iPhone 4S.

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