new EntitlementMiddleware(player)
Inject a Source handler for EMP streams
Parameters:
Name | Type | Description |
---|---|---|
player |
Player | The |
Members
-
<static> EntitlementClass
-
Return EntitlementClass
Methods
-
<static> getExposure(options, name)
-
Get an Exposure Service by name
Parameters:
Name Type Description options
Object The key/value store of player options.
name
string Name of the entitlement engine
Returns:
Exposure
- Type
- Exposure
-
<static> getLog()
-
get the EMP log object
Returns:
EMP log object
- Type
- * | log
-
<static> isExposure(object)
-
Return whether the past argument is an Exposure Service or not
Parameters:
Name Type Description object
Object An item to check
Returns:
Wheter it is a entitlement engine or not
- Type
- boolean
-
<static> registerExposure(name, entitlementEngine)
-
Register an Exposure Service
Parameters:
Name Type Description name
string Name of the entitlement engine
entitlementEngine
EntitlementEngine The entitlement engine to register
Throws:
Error
Returns:
EntitlementEngine
- Type
- EntitlementEngine