user2671374
user2671374

Reputation: 1

How to instantiate a MediaDrm object

I am using Nexus4 with Android 4.3, and I am try to use the new API public MediaDrm (UUID uuid), but I only can got the following exception:UnsupportedSchemeException.

The exception looks which arise from UUID is incorrect.

I've tried to use the UUID which is converted from deviceId, from network MAC address or from token which is sent from DRM server. all of I mentioned is incorrect.

Then is there anyone knows what is the correct way to get this UUID?

More info are in below:

Parameters:

uuid 

The UUID of the crypto scheme.

Thanks in advance.

Upvotes: 0

Views: 4113

Answers (2)

user1129216
user1129216

Reputation: 21

The UUID is a plugin identifiler, so please contact sansung.

The snip code as bellow comes from MediaDrmMockTest.java(try to use mock plugin)

static final UUID mockScheme = new UUID(0x0102030405060708L, 0x090a0b0c0d0e0f10L);

Upvotes: 1

jcorbier
jcorbier

Reputation: 33

This UUID parameter depends on which DRM scheme you would like to use. Each MediaDRM plugin defines its own UUID. If you take a look at the Mock DRM example, it is using 0102030405060708090a0b0c0d0e0f10

Upvotes: 0

Related Questions