DrmConfig

DrmConfig

abstract class DrmConfig : Parcelable

Configures decryption of DRM protected content.

Inheritors

Constructors

DrmConfigconstructor(licenseUrl: String?, uuid: UUID)

Types

NameSummary
Builderclass Builder(var licenseUrl: String? = null, var uuid: UUID? = null, var httpHeaders: MutableMap<String?, String?>? = null)

Properties

NameSummary
httpHeadersvar httpHeaders: MutableMap<String?, String?>?
A Map containing the HTTP request headers, or null
immediateLicenseRequest@ExperimentalBitmovinApi
var immediateLicenseRequest: Boolean
When set to true, the license requests are made as soon as init data is available for the active source in a playlist. Otherwise, the license requests are made once data segments are pushed into the buffer.
isLicenseRenewablevar isLicenseRenewable: Boolean
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:
licenseUrlval licenseUrl: String?
Returns the license url.
shouldKeepDrmSessionsAlive@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
uuidval uuid: UUID
Returns the UUID.

Functions

NameSummary
describeContentsopen override fun describeContents(): Int
writeToParcelopen override fun writeToParcel(dest: Parcel, flags: Int)