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
The DRMScheme of the passed drmLicenseURL.
Link copied to clipboard
The expiration of the content being downloaded expressed in epoch time.
Link copied to clipboard
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.