Synacor
Synacor
new Synacor(player, configopt, key)
Creates an instance of the Synacor plugin.
Parameters
Name | Type | Attributes | Description |
---|---|---|---|
player |
akamai.amp.Player | The player instance |
|
config |
akamai.amp.synacor.SynacorConfig | Object |
<optional> |
The configuration override object, or JSON string. Must adhear to the akamai.amp.synacor.SynacorConfig interface. |
key |
string | The plugin identifier. |
Methods
authenticate
authenticate(response)
Validate AuthN data provided
Parameters
Name | Type | Description |
---|---|---|
response |
string | base64 encoded string |
authorize
authorize(data, resourceId)
Authorize authZ response from endpoint
Parameters
Name | Type | Description |
---|---|---|
data |
* | {statusCode, opaqueId, message?} |
resourceId |
* | channel id to be authorize |
chooser
chooser()
Display the MVPD chooser UI
login
login(idp)
Calls login endpoint
Parameters
Name | Type | Description |
---|---|---|
idp |
string | unique identifier |
logout
logout(idp)
Calls logout endpoint
Parameters
Name | Type | Description |
---|---|---|
idp |
string | unique identifier |