public class DrmErrorEvent
extends DrmEvent
| java.lang.Object | ||
| android.drm.DrmEvent | ||
| android.drm.DrmErrorEvent | ||
传递给 onError()回调的实体类。
常量(Constants) |
|
|---|---|
int |
TYPE_ACQUIRE_DRM_INFO_FAILED 未能获得 |
int |
TYPE_NOT_SUPPORTED DRM插件(代理)无法处理来自服务器的响应。 |
int |
TYPE_NO_INTERNET_CONNECTION 互联网连接不可用,也不可尝试续订权利。 |
int |
TYPE_OUT_OF_MEMORY 内存分配在续订期间失败。 |
int |
TYPE_PROCESS_DRM_INFO_FAILED 无法处理 |
int |
TYPE_REMOVE_ALL_RIGHTS_FAILED 无法移除与所有DRM计划关联的所有版权对象。 |
int |
TYPE_RIGHTS_NOT_INSTALLED 安装权限时出错。 |
int |
TYPE_RIGHTS_RENEWAL_NOT_ALLOWED 服务器拒绝了权利的更新。 |
Inherited constants |
|---|
android.drm.DrmEvent
|
Public constructors |
|
|---|---|
DrmErrorEvent(int uniqueId, int type, String message) 用指定的参数创建一个 |
|
DrmErrorEvent(int uniqueId, int type, String message, HashMap<String, Object> attributes) 用指定的参数创建一个 |
|
继承方法(Inherited methods) |
|
|---|---|
android.drm.DrmEvent
|
|
java.lang.Object
|
|
int TYPE_ACQUIRE_DRM_INFO_FAILED
未能获得DrmInfo 。 当acquireDrmInfo()调用失败时,将发送此错误事件。
常量值:2008(0x000007d8)
int TYPE_NOT_SUPPORTED
DRM插件(代理)无法处理来自服务器的响应。
常量值:2003(0x000007d3)
int TYPE_NO_INTERNET_CONNECTION
互联网连接不可用,也不可尝试续订权利。
常量值:2005(0x000007d5)
int TYPE_OUT_OF_MEMORY
内存分配在续订期间失败。 将来可能会被用来触发垃圾收集器。
常量值:2004(0x000007d4)
int TYPE_PROCESS_DRM_INFO_FAILED
无法处理DrmInfo 。 当processDrmInfo()调用失败时,将发送此错误事件。
常量值:2006(0x000007d6)
int TYPE_REMOVE_ALL_RIGHTS_FAILED
无法移除与所有DRM计划关联的所有版权对象。
常量值:2007(0x000007d7)
int TYPE_RIGHTS_NOT_INSTALLED
安装权限时出错。
常量值:2001(0x000007d1)
int TYPE_RIGHTS_RENEWAL_NOT_ALLOWED
服务器拒绝了权利的更新。
常量值:2002(0x000007d2)
DrmErrorEvent (int uniqueId,
int type,
String message)
用指定的参数创建一个 DrmErrorEvent对象。
| 参数(Parameters) | |
|---|---|
uniqueId |
int: Unique session identifier. |
type |
int: Type of the event. Must be any of the event types defined above. |
message |
String: Message description. It can be null. |
DrmErrorEvent (int uniqueId,
int type,
String message,
HashMap<String, Object> attributes)
用指定参数创建一个 DrmErrorEvent对象。
| 参数(Parameters) | |
|---|---|
uniqueId |
int: Unique session identifier. |
type |
int: Type of the event. Must be any of the event types defined above. |
message |
String: Message description. |
attributes |
HashMap: Attributes for extensible information. Could be any information provided by the plug-in. It can be null. |