downloadLicense

abstract fun downloadLicense(manifestUriString: String, customerRightsToken: CustomerRightsToken): Array<Byte>

Downloads an offline license.

Return

The downloaded offline license key set id.

Parameters

manifestUriString

the URL to the DASH manifest file.

customerRightsToken

the customer rights token that describes the license type and limitations.

Throws

If an error occurs while attempt to read the manifest from the stream.

If the thread has been interrupted.

Thrown when there is an error during DRM session.