ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Question on the meaning of drm_license_url field

Open Gian84 opened this issue 9 years ago • 1 comments

Hi, I have just a question / doubt about drm_license_url in media.exolist.json. I thought it was the override of licenseUrl.

So, byte[] executeKeyRequest(UUID uuid, KeyRequest request) method in class HttpMediaDrmCallback.java in my opinion should be edited as snippet below:

- String url = request.getDefaultUrl(); - if (TextUtils.isEmpty(url)) { - url = defaultUrl; - } + String url = defaultUrl; + if (TextUtils.isEmpty(url)) { + url = request.getDefaultUrl(); + }

Could you explain me the real meaning of it?

Thank you in advance

Gian84 avatar Jun 15 '17 14:06 Gian84

The code is correct how it is currently. drm_license_url is the URL to use if there isn't one specified in the KeyRequest.

ojw28 avatar Jun 15 '17 14:06 ojw28