playerViewController(_:skipToPreviousChannel:)
Tells the delegate when the user wants to skip to the previous channel.
Declaration
optional func playerViewController(_ playerViewController: AVPlayerViewController, skipToPreviousChannel completion: @escaping @Sendable (Bool) -> Void)optional func playerViewControllerSkipToPreviousChannel(_ playerViewController: AVPlayerViewController) async -> BoolParameters
- playerViewController:
The player view controller.
- completion:
A completion callback to invoke to dismiss the channel’s interstitial view.
Discussion
Each call to this method should advance one channel, relative to the previous request, even if the prior request hasn’t yet completed. Adopt this method and replace the current player item with one that reflects the previous channel’s content, and call the completion block to dismiss the channel’s interstitial view.