Class DrmTodayConfiguration

    • Field Detail

      • DRMTODAY_PRODUCTION

        public static final String DRMTODAY_PRODUCTION
        Base URI for the DRMToday production environment
        See Also:
        Constant Field Values
      • DRMTODAY_STAGING

        public static final String DRMTODAY_STAGING
        Base URI for the DRMToday staging environment
        See Also:
        Constant Field Values
      • DRMTODAY_ONBOARD_PATHS

        public static final Map<Drm,​String> DRMTODAY_ONBOARD_PATHS
        This map is used for DRMtoday Onboard to configure the paths for the different DRM systems. The map contains an encoded URL path that will be appended to the base URL for the specific DRM system. The defaults are:

        • OMA: cmmlaoma/
        • Widevine: widevine/
        • Playready: Rightsmanager.asmx
      • userId

        @NonNull
        public final String userId
        The user ID
      • sessionId

        @NonNull
        public final String sessionId
        The session ID
      • merchant

        @NonNull
        public final String merchant
        The merchant
      • assetId

        @Nullable
        public final String assetId
        The asset ID
      • requestId

        @NonNull
        public final String requestId
        The request ID
      • authToken

        @Nullable
        public final String authToken
        The DRMToday auth token
      • variantId

        @Nullable
        public final String variantId
        The variant ID
      • isDRMTodayMobile

        public final boolean isDRMTodayMobile
        Set to true for DRMToday Mobile configurations
      • drmTodayMobileRoapUrl

        @Nullable
        public final String drmTodayMobileRoapUrl
        The DRMToday Mobile roap url
      • additionalAssetIds

        @Nullable
        public final List<String> additionalAssetIds
        Optional additional assetIds for content with tracks encrypted with different keys
    • Method Detail

      • getCustomDataJSON

        public String getCustomDataJSON()
        Returns:
        generated JSON to provide to the MediaDrm callbacks.
      • getUrl

        public String getUrl()
        Returns:
        The URL to the backend for the selected DRM
      • getOmaActivationServerUrl

        @NonNull
        public String getOmaActivationServerUrl()
        This returns a custom OMA activation server URL if DRMtoday Onboard is used and a custom URL is configured.
        Returns:
        Activation server url or empty string