Interface

interfaces/DRMAgent

interfaces/DRMAgent

The DRM Agent interface

Methods

# prepare(optionopt, playeropt) → {Promise}

To prepare the DRM agent, it will load the agent logic and prepare them

Parameters:
Name Type Attributes Description
option Object <optional>

the drm options

player interfaces/Player <optional>

the player instance

Native Promise.

Promise

# sendLicense(url, optionopt) → {Promise.<Boolean>}

Sends the license information

Parameters:
Name Type Attributes Description
url String

the license url

option Object <optional>

the license options

Promise.

Promise.<Boolean>

# sendMessage(messageopt) → {Promise.<Object>}

To send the DRM message

Parameters:
Name Type Attributes Description
message String <optional>

optional parameter if need to pass a custom message rather than using device generated.

Promise.

Promise.<Object>