MediaItem.DrmConfiguration


class MediaItem.DrmConfiguration


DRM configuration for a media item.

Summary

Nested types

Builder for DrmConfiguration.

Public functions

MediaItem.DrmConfiguration.Builder!

Returns a Builder initialized with the values of this instance.

Boolean
equals(obj: Any?)
java-static MediaItem.DrmConfiguration!

Restores a DrmConfiguration from a Bundle.

Int
Bundle!

Public properties

Boolean

Whether to force use of licenseUri even if the media specifies its own DRM license server URI.

ImmutableList<@C.TrackType Int!>!

The types of tracks for which to always use a DRM session even if the content is unencrypted.

ByteArray<Byte>?
ImmutableMap<String!, String!>!

The headers to attach to requests sent to the DRM license server.

Uri?

Optional default DRM license server Uri.

Boolean

Whether the DRM configuration is multi session enabled.

Boolean

Whether clear samples within protected content should be played when keys for the encrypted part of the content have yet to be loaded.

ImmutableMap<String!, String!>!

This property is deprecated.

Use licenseRequestHeaders instead.

UUID!

The UUID of the protection scheme.

ImmutableList<@C.TrackType Int!>!

This property is deprecated.

Use forcedSessionTrackTypes.

UUID!

This property is deprecated.

Use scheme instead.

Public functions

buildUpon

fun buildUpon(): MediaItem.DrmConfiguration.Builder!

Returns a Builder initialized with the values of this instance.

equals

fun equals(obj: Any?): Boolean

fromBundle

@UnstableApi
java-static fun fromBundle(bundle: Bundle!): MediaItem.DrmConfiguration!

Restores a DrmConfiguration from a Bundle.

hashCode

fun hashCode(): Int

toBundle

@UnstableApi
fun toBundle(): Bundle!

Public properties

forceDefaultLicenseUri

val forceDefaultLicenseUriBoolean

Whether to force use of licenseUri even if the media specifies its own DRM license server URI.

forcedSessionTrackTypes

val forcedSessionTrackTypesImmutableList<@C.TrackType Int!>!

The types of tracks for which to always use a DRM session even if the content is unencrypted.

keySetId

val keySetIdByteArray<Byte>?

licenseRequestHeaders

val licenseRequestHeadersImmutableMap<String!, String!>!

The headers to attach to requests sent to the DRM license server.

licenseUri

val licenseUriUri?

Optional default DRM license server Uri. If null then the DRM license server must be specified by the media.

multiSession

val multiSessionBoolean

Whether the DRM configuration is multi session enabled.

playClearContentWithoutKey

val playClearContentWithoutKeyBoolean

Whether clear samples within protected content should be played when keys for the encrypted part of the content have yet to be loaded.

requestHeaders

@UnstableApi
val requestHeadersImmutableMap<String!, String!>!

scheme

val schemeUUID!

The UUID of the protection scheme.

sessionForClearTypes

@UnstableApi
val sessionForClearTypesImmutableList<@C.TrackType Int!>!

uuid

@UnstableApi
val uuidUUID!