Instance Method

pictureInPictureController(_:failedToStartPictureInPictureWithError:)

Tells the delegate if Picture in Picture failed to start.

Declaration

optional func pictureInPictureController(_ pictureInPictureController: AVPictureInPictureController, failedToStartPictureInPictureWithError error: Error)

Parameters

pictureInPictureController

The Picture in Picture controller to which you’ve assigned the delegate.

error

An error describing why Picture in Picture failed to start.

Discussion

A delegate can implement this method to be notified when Picture in Picture failed to start. You can examine the error argument to determine the cause of the failure.

See Also

Responding to Picture in Picture Playback Events

func pictureInPictureControllerWillStartPictureInPicture(AVPictureInPictureController)

Tells the delegate when Picture in Picture is about to start.

func pictureInPictureControllerDidStartPictureInPicture(AVPictureInPictureController)

Tells the delegate when Picture in Picture playback has started.

func pictureInPictureControllerWillStopPictureInPicture(AVPictureInPictureController)

Tells the delegate when Picture in Picture is about to stop.

func pictureInPictureControllerDidStopPictureInPicture(AVPictureInPictureController)

Tells the delegate when Picture in Picture playback stops.