Class MediaItem.DrmConfiguration

  • Enclosing class:
    MediaItem

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

      • scheme

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

        @Nullable
        public final Uri licenseUri
        Optional default DRM license server Uri. If null then the DRM license server must be specified by the media.
      • 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 of licenseUri even if the media specifies its own DRM license server URI.
      • 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.