Android Widevine DASH implementation + ExoPlayer
<p>I want to play Widevine Modular - DASH video in my app and I want to use <code>VideoView</code> or <code>ExoPlayer</code> for it. </p>

<p>Is there any sample how I can setup it? Or can you provide me any sample code how to acquire the licence?
I have URL of the video and also the Widevine server URL.</p>

<p>Before we were using Widevine classic and the request for licence looks like this:</p>

<pre><code>private void prepareDrmInfoRequest()
{
        mDrmInfoRequest = new DrmInfoRequest(DrmInfoRequest.TYPE_RIGHTS_ACQUISITION_INFO, "application/mp4");
        mDrmInfoRequest.put("WVVideoUrlKey", "http://some_url.com/dash/1.mpd");
        mDrmInfoRequest.put("WVDRMServerKey", "http://some_url.com/video/widevine_modular/?auth_token=haslůkfjlksjfljnvlakhnsufn");
        mDrmInfoRequest.put("WVCAUserDataKey", "LJKHlklkhkljhKJLHuzgztfZTFZTUFzutf");
        mDrmInfoRequest.put("WVPortalKey", "provider");
}
</code></pre>

<p>and then</p>

<pre><code>  public int processDrm()
  {
        DrmInfo df = mDrmManagerClient.acquireDrmInfo(mDrmInfoRequest);
        if(df != null)
        {
            return mDrmManagerClient.processDrmInfo(df);
        }
  }
</code></pre>

<p>After that the video was playing on VideoView or ExoPlayer.</p>