Contents

AVPictureInPictureController

A controller that responds to user-initiated Picture in Picture playback of video in a floating, resizable window.

Declaration

class AVPictureInPictureController

Mentioned in

Overview

To use Picture in Picture, you need to configure your app to support background audio playback. See Configuring your app for media playback for more details.

Before presenting a user interface to start Picture in Picture, call the isPictureInPictureSupported() method to determine if the current device supports the feature, and check the isPictureInPicturePossible property value to determine whether PiP is possible in the current context.

Topics

Creating a Controller

Configuring the Content Source

Accessing the Player Layer

Configuring Playback Behavior

Accessing the Delegate Object

Accessing Picture in Picture State

Controlling Picture in Picture Playback

Retrieving Picture in Picture Template Images

Instance Methods

See Also

Picture in Picture