OGDownloadManager
Download-to-go: persists media (and, for DRM'd items, a persistent offline license) so it plays without a network connection.
Obtain via OGDownloads.manager. Downloading an item and playing it later needs no special playback code — OGPlayer.load of the same URL automatically plays from local storage, using the stored offline license instead of a license request.
All methods must be called from the application main thread unless noted.
Functions
Queues item for download. For DRM'd items the persistent offline license is acquired as part of the download (the item's DrmTokenProvider is invoked as it would be for streaming). VOD only — throws for live stream types. Re-adding a URL that is already downloading or downloaded is a no-op.
The download whose OGDownload.url equals url, or null.
Deletes the downloaded media AND releases the stored offline license.