MediaItem.DrmConfiguration
public final class MediaItem.DrmConfiguration
DRM configuration for a media item.
Summary
Nested types |
|---|
public final class MediaItem.DrmConfiguration.BuilderBuilder for |
Public fields |
|
|---|---|
final boolean |
Whether to force use of |
final ImmutableList<@C.TrackType Integer> |
The types of tracks for which to always use a DRM session even if the content is unencrypted. |
final @Nullable byte[] |
|
final ImmutableMap<String, String> |
The headers to attach to requests sent to the DRM license server. |
final @Nullable Uri |
Optional default DRM license server |
final boolean |
Whether the DRM configuration is multi session enabled. |
final boolean |
Whether clear samples within protected content should be played when keys for the encrypted part of the content have yet to be loaded. |
final ImmutableMap<String, String> |
This field is deprecated. Use |
final UUID |
The UUID of the protection scheme. |
final ImmutableList<@C.TrackType Integer> |
This field is deprecated. |
final UUID |
This field is deprecated. Use |
Public methods |
|
|---|---|
MediaItem.DrmConfiguration.Builder |
Returns a |
boolean |
|
static MediaItem.DrmConfiguration |
@UnstableApiRestores a |
@Nullable byte[] |
Returns the key set ID of the offline license. |
int |
hashCode() |
Bundle |
Public fields
forceDefaultLicenseUri
public final boolean forceDefaultLicenseUri
Whether to force use of licenseUri even if the media specifies its own DRM license server URI.
forcedSessionTrackTypes
public final ImmutableList<@C.TrackType Integer> forcedSessionTrackTypes
The types of tracks for which to always use a DRM session even if the content is unencrypted.
licenseRequestHeaders
public final ImmutableMap<String, String> licenseRequestHeaders
The headers to attach to requests sent to the DRM license server.
licenseUri
public final @Nullable Uri licenseUri
Optional default DRM license server Uri. If null then the DRM license server must be specified by the media.
multiSession
public final boolean multiSession
Whether the DRM configuration is multi session enabled.
playClearContentWithoutKey
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.
sessionForClearTypes
@UnstableApi
public final ImmutableList<@C.TrackType Integer> sessionForClearTypes
Public methods
buildUpon
public MediaItem.DrmConfiguration.Builder buildUpon()
Returns a Builder initialized with the values of this instance.
fromBundle
@UnstableApi
public static MediaItem.DrmConfiguration fromBundle(Bundle bundle)
Restores a DrmConfiguration from a Bundle.