Contents

pictureInPictureController(_:didTransitionToRenderSize:)

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

Declaration

func pictureInPictureController(_ pictureInPictureController: AVPictureInPictureController, didTransitionToRenderSize newRenderSize: CMVideoDimensions)

Parameters

  • pictureInPictureController:

    The Picture in Picture controller.

  • newRenderSize:

    The Picture in Picture content’s rendered size, in pixels.

Discussion

Take the new render size and the isPictureInPictureActive state into account when choosing media variants to avoid uncessary decoding overhead.

See Also

Responding to Playback Events