pictureInPictureControllerTimeRangeForPlayback(_:)
Asks the delegate for the current playable time range.
Declaration
func pictureInPictureControllerTimeRangeForPlayback(_ pictureInPictureController: AVPictureInPictureController) -> CMTimeRangeParameters
- pictureInPictureController:
The Picture in Picture controller.
Return Value
A CMTimeRange value that defines the content’s time range.
Discussion
Use the following guidelines when specifying a time range value:
For live content, return a time range with a duration of positiveInfinity.
For nonlive content, return a time range that contains the current time of the sample buffer display layer’s timebase.
When there’s no content to play, return invalid.
The system calls this method whenever you call the invalidatePlaybackState() method, and at other times as it requires.