DrmConfig

abstract class DrmConfig : Parcelable

Configures decryption of DRM protected content.

Inheritors

Constructors

Link copied to clipboard
constructor(licenseUrl: String?, uuid: UUID)

Types

Link copied to clipboard
class Builder(var licenseUrl: String? = null, var uuid: UUID? = null, var httpHeaders: MutableMap<String?, String?>? = null)

Properties

Link copied to clipboard

A Map containing the HTTP request headers, or null

Link copied to clipboard

Indicates if the license is renewable. Only relevant if the asset is stored for offline playback. When downloading new tracks the DRM license is updated in different ways, depending on this property:

Link copied to clipboard

Returns the license url.

Link copied to clipboard
@get:JvmName(name = "shouldKeepDrmSessionsAlive")
@set:JvmName(name = "setKeepDrmSessionsAlive")
var shouldKeepDrmSessionsAlive: Boolean

Indicates if the DRM sessions should be kept alive after a source is unloaded. This allows DRM sessions to be reused over several different source items with the same DRM configuration as well as the same DRM scheme information. Default: false

Link copied to clipboard
var uuid: UUID

Returns the UUID.

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open override fun writeToParcel(dest: Parcel, flags: Int)