com.bitmovin.player.api.drm
WidevineConfig
class WidevineConfig : DrmConfig
Configures decryption of a Widevine DRM protected Source.
Constructors
| WidevineConfig | constructor(licenseUrl: String?)constructor(licenseUrl: String?, httpHeaders: Map<String?, String?>? = null, isLicenseRenewable: Boolean = true, shouldKeepDrmSessionsAlive: Boolean = false, preferredSecurityLevel: String? = null, prepareMessageCallback: PrepareMessageCallback? = null, prepareLicenseCallback: PrepareLicenseCallback? = null) @ExperimentalBitmovinApi constructor(licenseUrl: String?, httpHeaders: Map<String?, String?>? = null, isLicenseRenewable: Boolean = true, shouldKeepDrmSessionsAlive: Boolean = false, preferredSecurityLevel: String? = null, prepareMessageCallback: PrepareMessageCallback? = null, prepareLicenseCallback: PrepareLicenseCallback? = null, drmSessionKeepaliveMs: Long?) Creates a Widevine configuration with a custom DRM session keepalive duration. See DrmConfig.drmSessionKeepaliveMs for details. |
Types
| Name | Summary |
|---|---|
| Companion | object Companion |
Properties
| Name | Summary |
|---|---|
| drmSessionKeepaliveMs | @ExperimentalBitmovinApi val drmSessionKeepaliveMs: Long? The duration in milliseconds for which an unused DRM session is kept alive. |
| httpHeaders | var 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. |
| isLicenseRenewable | var 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: |
| licenseUrl | val licenseUrl: String? Returns the license url. |
| preferredSecurityLevel | var preferredSecurityLevel: String? The preferred security level as a String. If set to null, the player will choose a fitting security level. The default value is null. |
| prepareLicenseCallback | @Transient var prepareLicenseCallback: PrepareLicenseCallback? Sets the PrepareLicenseCallback. The default value is null. |
| prepareMessageCallback | @Transient var prepareMessageCallback: PrepareMessageCallback? The PrepareMessageCallback. The default value is null. |
| 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. The retained session count is configured with TweaksConfig.maxRetainedDrmSessions. Default: false |
| uuid | val uuid: UUID Returns the UUID. |
Functions
| Name | Summary |
|---|---|
| describeContents | open override fun describeContents(): Int |
| toString | open override fun toString(): String |
| writeToParcel | open override fun writeToParcel(dest: Parcel, flags: Int) |