Baseflow / ExoPlayerXamarin

Xamarin bindings library for the Google ExoPlayer library

Home Page:https://baseflow.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Play an asset with DRM

erossini opened this issue · comments

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?