Play an asset with DRM
erossini opened this issue · comments
Enrico Rossini commented
I have protected content with DRM and azure Media Service gives me the ProtectionInfo for every browser and platform.
ProtectionInfo is something like
{
"url": "https://azneccmediaq001-euno.streaming.media.azure.net/otherurlparts/manifest(format=mpd-time-csf,encryption=cenc)",
"protectionInfo": [
{
"type": "Widevine",
"authenticationToken": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cm46bWljcm9zb2Z0OmF6dXJlOm1lZGlhc2VydmljZXM6Y29udGVudGtleWlkZW50aWZpZXIiOiIxNjBjZmIwNC0yYWJjLTQ3NjktODAwZi03NDU0ZDc2ZmIyNGIiLCJyZXNvbHV0aW9uIjoiMTA4MHAiLCJyZWdpb24iOiJ1ayIsInBsYXRmb3JtY2xhc3MiOiJXRUIiLCJwbGF0Zm9ybXN1YmNsYXNzIjoicHJpdmF0ZTplZGdlIiwibmJmIjoxNTY5MjQwODg1LCJleHAiOjE1NjkyNDQ3ODUsImlzcyI6Imh0dHBzOi8vd3d3LnZ1YmlxdWl0eS5jb20vIiwiYXVkIjoidXJuOnZ1YmlxdWl0eSJ9.-E_84rSuljhQ99autUC4ovm7AsyCJGde"
}
]
}
How can I pass this token to the player in order to play my content?