pictureInPictureController(_:skipByInterval:completion:)
Tells the delegate that the user has requested skipping forward or backward by the indicated time interval.
Declaration
func pictureInPictureController(_ pictureInPictureController: AVPictureInPictureController, skipByInterval skipInterval: CMTime, completion completionHandler: @escaping @Sendable () -> Void)func pictureInPictureController(_ pictureInPictureController: AVPictureInPictureController, skipByInterval skipInterval: CMTime) asyncParameters
- pictureInPictureController:
The Picture in Picture controller.
- skipInterval:
A Cmtime value that indicates the time interval by which to skip.
- completionHandler:
You must call the completion handler whether your seek operation succeeds or fails. Failing to call the completion handler is an app error and leaves the user interface in a seeking state.
Discussion
Your app’s implementation of this method may choose to seek by a different interval for efficiency reasons, such as seeking to a particular key frame or only allowing seeks that fall within the playable timeline.