DRMtoday¶
Code samples
DRMtoday playback: a DRM-protected DASH stream with licenses from DRMtoday.
The SDK includes a preconfigured DRMtoday environment. To use it, pass DRM
configuration under the drm key in the Player.open call. Set
the environment name to DRMtoday. A DRMtoday_STAGING environment is
also available for testing.
player.open({
source: 'https://example.com/Manifest.mpd',
drm: {
env: 'DRMtoday',
customData: {
userId: 'purchase',
sessionId: 'p0',
merchant: 'six',
}
}
});
Specific properties of the DRMtoday environment, set under
drm.customData:
Property |
Required |
Description |
|---|---|---|
|
Yes |
The |
|
Yes |
The |
|
Yes |
The merchant parameter. |
|
No |
The DRMtoday authentication token used for the license request when upfront authentication is used. |
|
No |
The asset ID of the content the license is requested for. Not required in all setups, but useful in some. |
|
No |
The variant ID of the content the license is requested for. Not required in all setups, but useful in some. |
|
No |
Widevine video robustness levels. Default: |
|
No |
Widevine audio robustness levels. Default: |
|
No |
Whether a persistent distinctive identifier is required. Default: |
|
No |
Whether the ability to persist state is required. Default: |
|
No |
PlayReady video robustness levels. Default: |
|
No |
PlayReady audio robustness levels. Default: |
|
No |
The Widevine server certificate. DRMtoday selects the right certificate by default; use this to select one explicitly. See |