Search code examples
androidandroid-ndkdrmplayready

Android NDK MediaDrm getKeyRequest doesn't return URL


I'm using the MediaDrm API for PlayReady decryption.

I've noticed the NDK AMediaDrm_getKeyRequest method doesn't return the defaultUrl to use to send the request.

There seems to be a contradiction in the documentation (See NdkMediaDrm.h line 154) as to whether or not it is returned, likely copied over from the Java documentation.

Has anyone managed to get the url with AMediaDrm_getKeyRequest? Or found another way to obtain the URL?


Solution

  • The URL is inside the <LA_URL> tags in the playready header :)