<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVPictureInPictureSampleBufferPlaybackDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(pl)AVPictureInPictureSampleBufferPlaybackDelegate"
  },
  "title" : "AVPictureInPictureSampleBufferPlaybackDelegate"
}
-->

# AVPictureInPictureSampleBufferPlaybackDelegate

A protocol for controlling playback from a sample buffer display layer in Picture in Picture.

```
protocol AVPictureInPictureSampleBufferPlaybackDelegate : NSObjectProtocol
```

## Topics

### Responding to Playback Events

[`-  pictureInPictureController:setPlaying:`](/documentation/AVKit/AVPictureInPictureSampleBufferPlaybackDelegate/pictureInPictureController(_:setPlaying:))

Tells the delegate that the user requested to begin or pause playback.

[`-  pictureInPictureControllerTimeRangeForPlayback:`](/documentation/AVKit/AVPictureInPictureSampleBufferPlaybackDelegate/pictureInPictureControllerTimeRangeForPlayback(_:))

Asks the delegate for the current playable time range.

[`-  pictureInPictureControllerIsPlaybackPaused:`](/documentation/AVKit/AVPictureInPictureSampleBufferPlaybackDelegate/pictureInPictureControllerIsPlaybackPaused(_:))

Asks delegate to indicate whether the playback UI reflects a playing or paused state, regardless of the current playback rate.

[`-  pictureInPictureController:didTransitionToRenderSize:`](/documentation/AVKit/AVPictureInPictureSampleBufferPlaybackDelegate/pictureInPictureController(_:didTransitionToRenderSize:))

Tells the delegate when the system Picture in Picture window changes size.

[`-  pictureInPictureController:skipByInterval:completionHandler:`](/documentation/AVKit/AVPictureInPictureSampleBufferPlaybackDelegate/pictureInPictureController(_:skipByInterval:completion:))

Tells the delegate that the user has requested skipping forward or backward by the indicated time interval.

[`-  pictureInPictureControllerShouldProhibitBackgroundAudioPlayback:`](/documentation/AVKit/AVPictureInPictureSampleBufferPlaybackDelegate/pictureInPictureControllerShouldProhibitBackgroundAudioPlayback(_:))

Asks the delegate whether to always prohibit background audio playback.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)