public final class

MediaItem.DrmConfiguration

extends java.lang.Object

 java.lang.Object

↳androidx.media3.common.MediaItem.DrmConfiguration

Overview

DRM configuration for a media item.

Summary

Fields
public final booleanforceDefaultLicenseUri

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

public final <any>forcedSessionTrackTypes

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

public final <any>licenseRequestHeaders

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

public final UrilicenseUri

Optional default DRM license server .

public final booleanmultiSession

Whether the DRM configuration is multi session enabled.

public final booleanplayClearContentWithoutKey

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

public final <any>requestHeaders

public final java.util.UUIDscheme

The UUID of the protection scheme.

public final <any>sessionForClearTypes

public final java.util.UUIDuuid

Methods
public MediaItem.DrmConfiguration.BuilderbuildUpon()

Returns a MediaItem.DrmConfiguration.Builder initialized with the values of this instance.

public booleanequals(java.lang.Object obj)

public byte[]getKeySetId()

Returns the key set ID of the offline license.

public inthashCode()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Fields

public final java.util.UUID scheme

The UUID of the protection scheme.

public final java.util.UUID uuid

Deprecated: Use MediaItem.DrmConfiguration.scheme instead.

public final Uri licenseUri

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

public final <any> requestHeaders

Deprecated: Use MediaItem.DrmConfiguration.licenseRequestHeaders instead.

public final <any> licenseRequestHeaders

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

public final boolean multiSession

Whether the DRM configuration is multi session enabled.

public final boolean playClearContentWithoutKey

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

public final boolean forceDefaultLicenseUri

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

public final <any> sessionForClearTypes

Deprecated: Use MediaItem.DrmConfiguration.forcedSessionTrackTypes.

public final <any> forcedSessionTrackTypes

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

Methods

public byte[] getKeySetId()

Returns the key set ID of the offline license.

Returns a MediaItem.DrmConfiguration.Builder initialized with the values of this instance.

public boolean equals(java.lang.Object obj)

public int hashCode()