<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVPictureInPictureController/startPictureInPicture()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPictureInPictureController(im)startPictureInPicture"
  },
  "title" : "startPictureInPicture()"
}
-->

# startPictureInPicture()

Starts Picture in Picture, if possible.

```
func startPictureInPicture()
```

## Discussion

When you call this method and Picture in Picture (PiP) is possible, your delegate receives a call to its [`pictureInPictureControllerWillStartPictureInPicture(_:)`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerWillStartPictureInPicture(_:)) method. After a successful start, your delegate receives a call to the [`pictureInPictureControllerDidStartPictureInPicture(_:)`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerDidStartPictureInPicture(_:)) method.

If PiP fails, your delegate receives a call to the [`pictureInPictureController(_:failedToStartPictureInPictureWithError:)`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureController(_:failedToStartPictureInPictureWithError:))method.

Whether you explicitly stop PiP, the user stops it through interaction, or the system stops it, your delegate receives a call to the [`pictureInPictureControllerWillStopPictureInPicture(_:)`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerWillStopPictureInPicture(_:)) method, followed by the [`pictureInPictureControllerDidStopPictureInPicture(_:)`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerDidStopPictureInPicture(_:)) method after the PiP stop animation completes.

---

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)