Package com.castlabs.android.cas
Class CasConfiguration
java.lang.Object
com.castlabs.android.cas.CasConfiguration
- All Implemented Interfaces:
Parcelable
Basic CAS configuration that can be used to query keys from a widevine proxy.
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
final int
The casID of the headend system, WVCAS is 0x4AD4 by defaultstatic final Parcelable.Creator
<CasConfiguration> final int
final String
The Google WVCAS Provision URLfinal byte[]
ProvisionBytes is a byte array (String) that is the content identifier.final Bundle
Bundle that can be used to put additional request (header) parameters that will be send to the DRM backend during license requests.final String
The proxy URLFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionCasConfiguration
(String url, String googleProvisionURL, int casID, int ecmDelayStart, int ageRestriction, byte[] provisioningBytes, Bundle requestProperties) Create CAS configuration -
Method Summary
-
Field Details
-
url
The proxy URL -
googleProvisionURL
The Google WVCAS Provision URL -
casID
public final int casIDThe casID of the headend system, WVCAS is 0x4AD4 by default -
ecmDelayStart
public final int ecmDelayStart -
ageRestriction
public final int ageRestriction -
provisioningBytes
@Nullable public final byte[] provisioningBytesProvisionBytes is a byte array (String) that is the content identifier. This value has to be match with the value defined in Headend for this content, in order to get the correct content license. -
requestProperties
Bundle that can be used to put additional request (header) parameters that will be send to the DRM backend during license requests. Note that all values need to be of type String! -
CREATOR
-
-
Constructor Details
-
CasConfiguration
public CasConfiguration(String url, String googleProvisionURL, int casID, int ecmDelayStart, int ageRestriction, byte[] provisioningBytes, Bundle requestProperties) Create CAS configuration- Parameters:
url
- Proxy URL for license requestgoogleProvisionURL
- Google Device Provisioning URLcasID
- CAS System ID, default WVCAS_ID 0x4AD4ecmDelayStart
- The delay in ms of starting process ECM data, used to fine tune ECM alignmentageRestriction
- The age defined for the client side to access the contentprovisioningBytes
- A byte array (String) for CAS system to identity the content, must match with CAS headend configurationrequestProperties
- Additional HTTP request header(s) used for CAS license request. Usually used with DRMtoday license request.
-
-
Method Details
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
-