Jack
Jack

Reputation: 2223

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?

Upvotes: 0

Views: 443

Answers (1)

Jack
Jack

Reputation: 2223

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

Upvotes: 2

Related Questions