Package com.castlabs.android.drm
Class DrmTodayConfiguration
java.lang.Object
com.castlabs.android.drm.DrmConfiguration
com.castlabs.android.drm.DrmTodayConfiguration
- All Implemented Interfaces:
Parcelable
This class contains the configuration parameters necessary to use DRMtoday with the player.
Please use the
DrmTodayConfiguration.Builder
to create instances of this class.- Since:
- 3.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder implementation to create instances ofDrmTodayConfiguration
sstatic @interface
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionOptional additional assetIds for content with tracks encrypted with different keysfinal String
The asset IDfinal String
The DRMToday auth tokenstatic final Parcelable.Creator
<DrmTodayConfiguration> The Parcel creatorThis map is used for DRMtoday Onboard to configure the paths for the different DRM systems.static final String
Base URI for the DRMToday production environmentstatic final String
Base URI for the DRMToday staging environmentstatic final String
Base URI for the DRMToday test environmentfinal String
The DRMToday Mobile roap urlfinal boolean
Set to true for DRMToday Mobile configurationsfinal String
The merchantfinal String
The request IDfinal String
The session IDfinal String
The user IDfinal String
The variant IDFields inherited from class com.castlabs.android.drm.DrmConfiguration
audioDrm, DEFAULT, drm, forceWidevineL3, keyRotation, mediaDrmProperties, offlineId, playClearSamplesWithoutKeys, preferManifestUrl, renewalThresholdMs, requestParameters, url
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionint
This returns a custom OMA activation server URL if DRMtoday Onboard is used and a custom URL is configured.getUrl()
toString()
void
writeToParcel
(Parcel dest, int flags) Methods inherited from class com.castlabs.android.drm.DrmConfiguration
equals, getSecurityLevel, hashCode, renewalEnabled, resolvedAudioDrm, resolvedDrm
-
Field Details
-
DRMTODAY_PRODUCTION
Base URI for the DRMToday production environment- See Also:
-
DRMTODAY_STAGING
Base URI for the DRMToday staging environment- See Also:
-
DRMTODAY_TEST
Base URI for the DRMToday test environment- See Also:
-
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
- OMA:
-
CREATOR
The Parcel creator -
userId
The user ID -
sessionId
The session ID -
merchant
The merchant -
assetId
The asset ID -
requestId
The request ID -
authToken
The DRMToday auth token -
variantId
The variant ID -
isDRMTodayMobile
public final boolean isDRMTodayMobileSet to true for DRMToday Mobile configurations -
drmTodayMobileRoapUrl
The DRMToday Mobile roap url -
additionalAssetIds
Optional additional assetIds for content with tracks encrypted with different keys
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
- Overrides:
describeContents
in classDrmConfiguration
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
- Overrides:
writeToParcel
in classDrmConfiguration
-
toString
- Overrides:
toString
in classDrmConfiguration
-
getCustomDataJSON
- Returns:
- generated JSON to provide to the MediaDrm callbacks.
-
getUrl
- Returns:
- The URL to the backend for the selected DRM
-
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
-