Instance Method

skipToPreviousItem(for:)

Tells the delegate the user skips backward in the timeline and the player view controller is configured to use non-default skipping behavior.

Declaration

optional func skipToPreviousItem(for playerViewController: AVPlayerViewController)

Parameters

playerViewController

The player view controller to which this delegate is assigned.

Discussion

This method will be invoked when a player view controller’s skipping behavior is set to “skip items” and a user performs a backward skip gesture (clicking the left side of the Siri remote’s Touch surface). When this method is invoked, it is your responsibility to update the player view controller’s AVPlayer to play the previous player item.

See Also

Responding to Navigation Events

func playerViewController(AVPlayerViewController, timeToSeekAfterUserNavigatedFrom: CMTime, to: CMTime) -> CMTime

Tells the delegate a user has skipped, scrubbed, or otherwise navigated to a new time and wants to resume playback at the targetTime.

func playerViewController(AVPlayerViewController, willResumePlaybackAfterUserNavigatedFrom: CMTime, to: CMTime)

Tells the delegate the user has skipped, scrubbed, or otherwise navigated to a new time, and playback is about to start at the new time.

func skipToNextItem(for: AVPlayerViewController)

Tells the delegate the user skips forward in the timeline and the player view controller is configured to use non-default skipping behavior.