Package 

Interface LicenseManager


  • 
    public interface LicenseManager
    
                        

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

    • 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.