I have been trying to do this for a few days now using AVFoundation as well as trying to use MPMoviePlayerViewController. The closest I can get is allowing one to play at a time. I would like to think that this is possible because of Facetime. However, I know this is a little different because there is no separate video file.
Any ideas would help, and thanks.
I’m not sure where this is documented, but to get
AVCaptureVideoPreviewLayerandMPMoviePlayerViewControllerto play together at the same time you need to set a mixable audio session category first.Here’s one way to do that:
See the Audio Session Programming Guide and Audio Session Cookbook for more info.