<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVPictureInPictureController/ContentSource-swift.class/init(activeVideoCallSourceView:contentViewController:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPictureInPictureControllerContentSource(im)initWithActiveVideoCallSourceView:contentViewController:"
  },
  "title" : "init(activeVideoCallSourceView:contentViewController:)"
}
-->

# init(activeVideoCallSourceView:contentViewController:)

Creates a content source with an active video call.

```
init(activeVideoCallSourceView sourceView: UIView, contentViewController: AVPictureInPictureVideoCallViewController)
```

## Parameters

`sourceView`

A view that contains the content of the video call.

`contentViewController`

The view controller to appear in the system’s Picture in Picture window.

## Discussion

The instance is only valid for the duration of the call.

> Important:
> In iOS 16 and later, you can use the camera in Picture in Picture mode by enabling a capture session’s <doc://com.apple.documentation/documentation/AVFoundation/AVCaptureSession/isMultitaskingCameraAccessEnabled> property. Apps that have a deployment target earlier than iOS 16 require the <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.avfoundation.multitasking-camera-access> entitlement to use the camera in PiP mode.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)