LicenseManager

interface LicenseManager

Contract of license manager implementation that can be used to manage offline playback licenses.

Author

rsubramaniam

Properties

Link copied to clipboard
val CR_TOKEN_HEADER: String = "X-BC-CRT-CONFIG"
The HTTP header name of the CustomerRightsToken.

Functions

Link copied to clipboard
abstract fun downloadLicense(manifestUriString: String, customerRightsToken: CustomerRightsToken): Array<Byte>
Downloads an offline license.
Link copied to clipboard
abstract fun getPropertyString(key: String): String
Gets the specified property.
Link copied to clipboard
abstract fun getRemainingLicenseDuration(licenseKeySetId: Array<Byte>): Pair<Long, Long>
Returns license and playback durations remaining in seconds of the given offline license.
Link copied to clipboard
abstract fun releaseLicense(licenseKeySetId: Array<Byte>)
Releases an offline license.
Link copied to clipboard
abstract fun releaseResources()
Releases the used resources.
Link copied to clipboard
abstract fun renewLicense(licenseKeySetId: Array<Byte>): Array<Byte>
Renews an offline license.
Link copied to clipboard
abstract fun setPropertyString(key: String, value: String)
Sets the specified property.