DownloadRequest

data class DownloadRequest(val mediaURL: String, val mediaType: MediaType, val drmLicenseURL: String?, val drmScheme: DRMScheme, val downloadStreamPreference: DownloadStreamPreference, val metadata: String, val id: String = mediaURL, val expiration: Long, val playbackExpiryDuration: Long)

Represents the incoming download request.

Constructors

Link copied to clipboard
constructor(mediaURL: String, mediaType: MediaType, drmLicenseURL: String?, drmScheme: DRMScheme, downloadStreamPreference: DownloadStreamPreference, metadata: String, id: String = mediaURL, expiration: Long, playbackExpiryDuration: Long)

Creates DownloadRequest instance.

Types

Link copied to clipboard
class Builder

Builds DownloadRequest instance.

Properties

Link copied to clipboard

The preferences of elementary streams.

Link copied to clipboard

The optional URL to retrieve DRM License if the content is encrypted.

Link copied to clipboard
Link copied to clipboard

The expiration of the content being downloaded expressed in epoch time.

Link copied to clipboard
val id: String

The download ID that can optionally be configured at the time of request instantiation. This will be reflected in the result's Download.id property and can help in uniquely identifying a Download. By default this will be configured as the passed mediaURL property.

Link copied to clipboard

The MediaType of the passed mediaURL.

Link copied to clipboard

The valid URL to retrieve the content itself (or) it's manifest for download.

Link copied to clipboard

The application defined data associated with the DownloadRequest. May be empty.

Link copied to clipboard

The remaining time, in seconds, for the downloaded asset's playback expiry.