Skip to main content

Verimatrix

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

const playerConfiguration = {
autoPlay: true,
source: { /* ... */},
drm: {
environment: 'Verimatrix',
customData: {
deviceId: 'YOUR_DEVICE_ID',
widevineLicenseUrl: 'YOUR_WIDEVINE_LICENSE_URL',
playReadyLicenseUrl: 'YOUR_PLAYREADY_LICENSE_URL',
fairPlayLicenseUrl: 'YOUR_FAIRPLAY_LICENSE_URL',
fairPlayCertificateUrl: 'YOUR_FAIRPLAY_CERTIFICATE_URL',
} as VerimatrixCustomData,
},
};

The customData object must adhere to the VerimatrixCustomData type and is used to configure Verimatrix-specific settings. It must include a deviceId, which serves as a unique identifier for the device. Additionally, the configuration should specify the license URLs for the targeted DRM systems.