Skip to main content

DRMtoday

The SDK has the concept of DRM environments, which are predefined configurations for different DRM platforms. One such predefined environment is the DRMtoday environment, which uses the DRMtoday platform. To use the DRMtoday environment, set the environment field in the DrmConfiguration to DRMtoday and specify additional settings using the customData object. For example:

const playerConfiguration = {
autoPlay: true,
source: { /* ... */},
drm: {
environment: 'DRMtoday',
customData: {
userId: 'YOUR_USER_ID',
sessionId: 'YOUR_SESSIO_ID',
merchant: 'YOUR_MERCHANT',
} as DrmTodayCustomData,
},
};

The customData object must adhere to the DrmTodayCustomData type and is used to configure DRMtoday-specific settings. At a minimum, the userId, sessionId, and merchant fields should be provided.

Note that there are two additional environments available for the DRMtoday platform: DRMtoday_STAGING and DRMtoday_TEST. DRMtoday_STAGING points to the staging environment, and DRMtoday_TEST points to the test environment. These environments are for testing purposes and should not be used in production.