OGDownload

Immutable snapshot of one download. Obtain from OGDownloadManager.downloads / OGDownloadManager.getDownload; a new snapshot is delivered on every OGDownloadListener callback.

Properties

Link copied to clipboard
Link copied to clipboard

Persistent-license facts, or null for clear (non-DRM) content.

Link copied to clipboard
Link copied to clipboard

0..100, or -1 while the size is still unknown.

Link copied to clipboard
Link copied to clipboard

Stored scrub-thumbnail track, restored onto toMediaItem.

Link copied to clipboard
Link copied to clipboard
val url: String

The media URL — the download's identity, and the URL OGPlayer.load matches for offline playback.

Functions

Link copied to clipboard

A playable OGMediaItem for this download. Loading it plays from local storage — offline, without any license request for DRM'd content (the stored persistent license is used). Re-attach the original DrmConfig via OGMediaItem.Builder.setDrm only when the app wants automatic fallback to a streaming license (e.g. after offline-license expiry, while online).

Link copied to clipboard
open override fun toString(): String