urlSession(_:aggregateAssetDownloadTask:didLoad:totalTimeRangesLoaded:timeRangeExpectedToLoad:for:)
Tells the delegate that the aggregate download task loaded a new time range.
Declaration
optional func urlSession(_ session: URLSession, aggregateAssetDownloadTask: AVAggregateAssetDownloadTask, didLoad timeRange: CMTimeRange, totalTimeRangesLoaded loadedTimeRanges: [NSValue], timeRangeExpectedToLoad: CMTimeRange, for mediaSelection: AVMediaSelection)Parameters
- session:
The session the asset download task is on.
- aggregateAssetDownloadTask:
The download task that loaded a new time range.
- timeRange:
A Cmtimerange value that indicates the time range the task loaded since the last call to this method.
- loadedTimeRanges:
An array of CMTimeRange values that indicate the time ranges the task has downloaded so far.
- timeRangeExpectedToLoad:
A CMTimeRange value that indicates the expected duration of the downloaded asset.
- mediaSelection:
The media selection the task is downloading.