Class MediaItem.DrmConfiguration

  • Enclosing class:

    public static final class MediaItem.DrmConfiguration
    extends Object
    DRM configuration for a media item.
    • Field Detail

      • uuid

        public final UUID uuid
        The UUID of the protection scheme.
      • licenseUri

        public final Uri licenseUri
        Optional default DRM license server Uri. If null then the DRM license server must be specified by the media.
      • requestHeaders

        public final Map<String,​String> requestHeaders
        The headers to attach to the request 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 of licenseUri even if the media specifies its own DRM license server URI.
      • sessionForClearTypes

        public final List<Integer> sessionForClearTypes
        The types of clear tracks for which to use a DRM session.
    • Method Detail

      • getKeySetId

        public byte[] getKeySetId()
        Returns the key set ID of the offline license.
      • equals

        public boolean equals​(@Nullable
                              Object obj)
        equals in class Object
      • hashCode

        public int hashCode()
        hashCode in class Object