new EntitlementExpirationService(player)
Constructor
Parameters:
| Name | Type | Description |
|---|---|---|
player |
Player |
Methods
-
errorForReason(error)
-
Error for reason
Returns a human readable string for expiration error
Parameters:
Name Type Description errorString Returns:
Human readable error string
- Type
- String
-
hasLicenseExpiration(entitlement)
-
Checks if the current entitlement has a license expiration
Parameters:
Name Type Description entitlementEntitlement Returns:
Bool Does entitlement have an expiration?
-
refreshEntitlement(entitlement)
-
Refresh entitlement
Asks the entitlement engine to re-request the entitlement using the previously used data.
Parameters:
Name Type Description entitlementEntitlement
EMP Html5 Player