-
public interface LicenseManager
Contract of license manager implementation that can be used to manage offline playback licenses.
-
-
Method Summary
Modifier and Type Method Description abstract Array<byte>
downloadLicense(String manifestUriString, @NonNull() CustomerRightsToken customerRightsToken)
Downloads an offline license. abstract Array<byte>
renewLicense(Array<byte> licenseKeySetId)
Renews an offline license. abstract void
releaseLicense(@Nullable() Array<byte> licenseKeySetId)
Releases an offline license. abstract Pair<Long, Long>
getRemainingLicenseDuration(Array<byte> licenseKeySetId)
Returns license and playback durations remaining in seconds of the given offline license. abstract void
releaseResources()
Releases the used resources. abstract void
setPropertyString(String key, String value)
Sets the specified property. abstract String
getPropertyString(String key)
Gets the specified property. -
-
Method Detail
-
downloadLicense
@Nullable() abstract Array<byte> downloadLicense(String manifestUriString, @NonNull() CustomerRightsToken customerRightsToken)
Downloads an offline license.
- Parameters:
manifestUriString
- the URL to the DASH manifest file.customerRightsToken
- the customer rights token that describes the license type and limitations.
-
renewLicense
@Nullable() abstract Array<byte> renewLicense(Array<byte> licenseKeySetId)
Renews an offline license.
- Parameters:
licenseKeySetId
- The key set id of the license to be renewed.
-
releaseLicense
abstract void releaseLicense(@Nullable() Array<byte> licenseKeySetId)
Releases an offline license.
- Parameters:
licenseKeySetId
- The key set id of the license to be released.
-
getRemainingLicenseDuration
@Nullable() abstract Pair<Long, Long> getRemainingLicenseDuration(Array<byte> licenseKeySetId)
Returns license and playback durations remaining in seconds of the given offline license. The first value in the result will provide the remaining license duration as totalnumber of seconds, while second value will provide the remain play duration astotal number of seconds.
- Parameters:
licenseKeySetId
- The key set id of the license.
-
releaseResources
abstract void releaseResources()
Releases the used resources.
-
setPropertyString
abstract void setPropertyString(String key, String value)
Sets the specified property.
-
getPropertyString
abstract String getPropertyString(String key)
Gets the specified property.
-
-
-
-