<!--
{
  "documentType" : "article",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/offline-playback-and-storage",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Offline playback and storage"
}
-->

# Offline playback and storage

Download streamed content to disk to allow offline playback, and define policies to automatically remove downloaded assets.

## Topics

### Asset downloading

[Using AVFoundation to play and persist HTTP live streams](/documentation/AVFoundation/using-avfoundation-to-play-and-persist-http-live-streams)

Play HTTP Live Streams and persist streams on disk for offline playback using AVFoundation.

[`AVAssetDownloadURLSession`](/documentation/AVFoundation/AVAssetDownloadURLSession)

A URL session that creates and manages asset download tasks.

[`AVAssetDownloadTask`](/documentation/AVFoundation/AVAssetDownloadTask)

A URL session task that downloads a remote asset to the device for offline playback.

[`AVAggregateAssetDownloadTask`](/documentation/AVFoundation/AVAggregateAssetDownloadTask)

A task that downloads multiple media selections for an asset.

### Offline storage management

[`AVAssetDownloadStorageManager`](/documentation/AVFoundation/AVAssetDownloadStorageManager)

An object that manages policies to automatically purge downloaded assets.

[`AVAssetDownloadStorageManagementPolicy`](/documentation/AVFoundation/AVAssetDownloadStorageManagementPolicy)

An object that defines a policy to automatically manage the storage of downloaded assets.

[`AVMutableAssetDownloadStorageManagementPolicy`](/documentation/AVFoundation/AVMutableAssetDownloadStorageManagementPolicy)

A mutable object that you use to create a new storage management policy.

### Cache monitoring

[`AVAssetCache`](/documentation/AVFoundation/AVAssetCache)

An object that you use to inspect locally cached media data.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)