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 classA builder implementation to create instances ofDrmTodayConfigurationsstatic @interfaceSpecifies the environment for the DRM Today service.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 StringThe asset IDfinal StringThe 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 StringBase URI for the DRMToday production environmentstatic final StringBase URI for the DRMToday staging environmentstatic final StringBase URI for the DRMToday test environmentfinal StringThe DRMToday Mobile roap urlfinal booleanSet to true for DRMToday Mobile configurationsfinal StringThe merchantfinal StringThe request IDfinal StringThe session IDfinal StringThe user IDfinal StringThe variant IDFields inherited from class com.castlabs.android.drm.DrmConfiguration
audioDrm, DEFAULT, drm, forceWidevineL3, keyRotation, mediaDrmProperties, offlineId, playClearSamplesWithoutKeys, preferManifestUrl, renewalThresholdMs, requestParameters, urlFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Method Summary
Modifier and TypeMethodDescriptionintReturns the generated JSON to provide to the MediaDrm callbacks.getUrl()Returns the URL to the backend for the selected DRM.toString()voidwriteToParcel(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:- Widevine:
widevine/ - Playready:
Rightsmanager.asmx
- Widevine:
-
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:
describeContentsin interfaceParcelable- Overrides:
describeContentsin classDrmConfiguration
-
writeToParcel
- Specified by:
writeToParcelin interfaceParcelable- Overrides:
writeToParcelin classDrmConfiguration
-
toString
- Overrides:
toStringin classDrmConfiguration
-
getCustomDataJSON
Returns the generated JSON to provide to the MediaDrm callbacks.- Returns:
- generated JSON to provide to the MediaDrm callbacks.
-
getUrl
Returns the URL to the backend for the selected DRM.- Returns:
- The URL to the backend for the selected DRM
-