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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software