Product
Player
Question
When you add full DRM to the player config, the credentials are wrapped as regular JSON, eg from https://developer.bitmovin.com/playback/docs/streaming-drm-protected-content-with-bitmovin-player-web-sdk:
fairplay: {
LA_URL: ‘https://license-server-url-provided-by-drmtoday’,
certificateURL: ‘https://certificate-url-provided-by-drmtoday’,
headers: {
‘dt-custom-data’: ‘INSERT-YOUR-BASE64-ENCODED-CUSTOMDATA’,
}
But when you use Clearkey the same guidance shows the JSON wrapped in an array, eg:
drm: {
clearkey: [{
key: ‘YOUR-KEY-HERE’,
kid: ‘YOUR-KID-HERE’ //optional
}]
}
It works, but causes the console error, ‘asm.js type error: cannot create array view without an asm.js heap parameter’.
If I remove the array brackets, it still plays fine but without reporting the error.
Which is correct? What is the reason for the array wrapper?