如何实例化MediaDrm对象 [英] How to instantiate a MediaDrm object

查看:369
本文介绍了如何实例化MediaDrm对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Nexus4与Android 4.3配合使用,并且尝试使用新的API public MediaDrm (UUID uuid),但是我只能遇到以下异常:UnsupportedSchemeException.

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.

由UUID引起的异常外观不正确.

The exception looks which arise from UUID is incorrect.

我尝试使用从deviceId,网络MAC地址或从DRM服务器发送的令牌转换而来的UUID.我提到的所有内容都是错误的.

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.

然后有人知道获取此UUID的正确方法是什么吗?

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

更多信息在下面:

参数:

uuid 

加密方案的UUID.

谢谢.

推荐答案

UUID是插件标识,因此请与sansung联系.

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

下面的代码来自MediaDrmMockTest.java(尝试使用模拟插件)

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

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

这篇关于如何实例化MediaDrm对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆