Package com.google.android.exoplayer2
Class MediaItem.DrmConfiguration
- java.lang.Object
-
- com.google.android.exoplayer2.MediaItem.DrmConfiguration
-
- All Implemented Interfaces:
Bundleable
- Enclosing class:
- MediaItem
public static final class MediaItem.DrmConfiguration extends Object implements Bundleable
DRM configuration for a media item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMediaItem.DrmConfiguration.BuilderBuilder forMediaItem.DrmConfiguration.-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description static Bundleable.Creator<MediaItem.DrmConfiguration>CREATORAn object that can restoreMediaItem.DrmConfigurationfrom aBundle.booleanforceDefaultLicenseUriWhether to force use oflicenseUrieven if the media specifies its own DRM license server URI.ImmutableList<@TrackType Integer>forcedSessionTrackTypesThe types of tracks for which to always use a DRM session even if the content is unencrypted.ImmutableMap<String,String>licenseRequestHeadersThe headers to attach to requests sent to the DRM license server.UrilicenseUriOptional default DRM license serverUri.booleanmultiSessionWhether the DRM configuration is multi session enabled.booleanplayClearContentWithoutKeyWhether 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>requestHeadersDeprecated.UselicenseRequestHeadersinstead.UUIDschemeThe UUID of the protection scheme.ImmutableList<@TrackType Integer>sessionForClearTypesDeprecated.UUIDuuidDeprecated.Useschemeinstead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaItem.DrmConfiguration.BuilderbuildUpon()Returns aMediaItem.DrmConfiguration.Builderinitialized with the values of this instance.booleanequals(Object obj)byte[]getKeySetId()Returns the key set ID of the offline license.inthashCode()BundletoBundle()Returns aBundlerepresenting the information stored in this object.
-
-
-
Field Detail
-
scheme
public final UUID scheme
The UUID of the protection scheme.
-
uuid
@Deprecated public final UUID uuid
Deprecated.Useschemeinstead.
-
licenseUri
@Nullable public final Uri licenseUri
Optional default DRM license serverUri. Ifnullthen the DRM license server must be specified by the media.
-
requestHeaders
@Deprecated public final ImmutableMap<String,String> requestHeaders
Deprecated.UselicenseRequestHeadersinstead.
-
licenseRequestHeaders
public final ImmutableMap<String,String> licenseRequestHeaders
The headers to attach to requests sent to the DRM license server.
-
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.
-
forceDefaultLicenseUri
public final boolean forceDefaultLicenseUri
Whether to force use oflicenseUrieven if the media specifies its own DRM license server URI.
-
sessionForClearTypes
@Deprecated public final ImmutableList<@TrackType Integer> sessionForClearTypes
Deprecated.
-
forcedSessionTrackTypes
public final ImmutableList<@TrackType Integer> forcedSessionTrackTypes
The types of tracks for which to always use a DRM session even if the content is unencrypted.
-
CREATOR
public static final Bundleable.Creator<MediaItem.DrmConfiguration> CREATOR
An object that can restoreMediaItem.DrmConfigurationfrom aBundle.
-
-
Method Detail
-
getKeySetId
@Nullable public byte[] getKeySetId()
Returns the key set ID of the offline license.
-
buildUpon
public MediaItem.DrmConfiguration.Builder buildUpon()
Returns aMediaItem.DrmConfiguration.Builderinitialized with the values of this instance.
-
toBundle
public Bundle toBundle()
Description copied from interface:BundleableReturns aBundlerepresenting the information stored in this object.- Specified by:
toBundlein interfaceBundleable
-
-