Setting Multitasking Camera Access Support

I have a question in regards to setting up isMultitaskingCameraAccessEnabled for Picture in Picture capabilities on iOS 16 intended for video calls. In my CaptureSession flow I have set up the requirement to enable "MultitaskingCameraAccess" as indicated in the developer documentation. https://developer.apple.com/documentation/avkit/accessing_the_camera_while_multitasking https://developer.apple.com/documentation/avkit/adopting_picture_in_picture_for_video_calls

let captureSession = AVCaptureSession()

// Configure the capture session.
captureSession.beginConfiguration()
if captureSession.isMultitaskingCameraAccessSupported {
    // Enable using the camera in multitasking modes.
    captureSession.isMultitaskingCameraAccessEnabled = true
}
captureSession.commitConfiguration()

// Start the capture session.
captureSession.startRunning()

However isMultitaskingCameraAccessSupported is always false. My question is what dictates this setting? How can I support multitasking camera access by enabling this boolean to true?

Post not yet marked as solved Up vote post of Cartisim Down vote post of Cartisim
95 views
  • The documentation states, _"Starting in iOS 16, your app can use the camera while multitasking by setting the isMultitaskingCameraAccessEnabled property to true on supported systems. Do we have a scenario needed or a list of supported systems. This seems to be quite ambiguous.

  • It can work on ipad air5.I guess only M1 chip devices are supported

  • Really? That is interesting. I have tried on iPhone XR. I have not tried on Mac yet. I have several devices I could try on, but I am not sure why trying on a iPhone >= XR wouldn't work. Any suggestions or any other successful test cases?

Add a Comment

Replies

I also have same problem. ios16 beta3 + iphone13