[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/drm/DrmErrorEvent [Back]  [Original]

DrmErrorEvent  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.

DrmErrorEvent


public class DrmErrorEvent
extends DrmEvent

java.lang.Object
   ↳ android.drm.DrmEvent
     ↳ android.drm.DrmErrorEvent


This class was deprecated in API level 30.
Please use MediaDrm

An entity class that is passed to the onError() callback.

Summary

Constants

int TYPE_ACQUIRE_DRM_INFO_FAILED

Failed to acquire DrmInfo.

int TYPE_NOT_SUPPORTED

Response from the server cannot be handled by the DRM plug-in (agent).

int TYPE_NO_INTERNET_CONNECTION

An Internet connection is not available and no attempt can be made to renew rights.

int TYPE_OUT_OF_MEMORY

Memory allocation failed during renewal.

int TYPE_PROCESS_DRM_INFO_FAILED

Failed to process DrmInfo.

int TYPE_REMOVE_ALL_RIGHTS_FAILED

Failed to remove all the rights objects associated with all DRM schemes.

int TYPE_RIGHTS_NOT_INSTALLED

Something went wrong installing the rights.

int TYPE_RIGHTS_RENEWAL_NOT_ALLOWED

The server rejected the renewal of rights.

Inherited constants

Public constructors

DrmErrorEvent(int uniqueId, int type, String message)

Creates a DrmErrorEvent object with the specified parameters.

)">DrmErrorEvent(int uniqueId, int type, String message, HashMap<StringObject> attributes)

Creates a DrmErrorEvent object with the specified parameters.

Inherited methods

Constants

TYPE_ACQUIRE_DRM_INFO_FAILED

Added in API level 12
Deprecated in API level 30
public static final int TYPE_ACQUIRE_DRM_INFO_FAILED

Failed to acquire DrmInfo. This error event is sent when an acquireDrmInfo() call fails.

Constant Value: 2008 (0x000007d8)

TYPE_NOT_SUPPORTED

Added in API level 11
public static final int TYPE_NOT_SUPPORTED

Response from the server cannot be handled by the DRM plug-in (agent).

Constant Value: 2003 (0x000007d3)

TYPE_NO_INTERNET_CONNECTION

Added in API level 11
public static final int TYPE_NO_INTERNET_CONNECTION

An Internet connection is not available and no attempt can be made to renew rights.

Constant Value: 2005 (0x000007d5)

TYPE_OUT_OF_MEMORY

Added in API level 11
public static final int TYPE_OUT_OF_MEMORY

Memory allocation failed during renewal. Can in the future perhaps be used to trigger garbage collector.

Constant Value: 2004 (0x000007d4)

TYPE_PROCESS_DRM_INFO_FAILED

Added in API level 11
public static final int TYPE_PROCESS_DRM_INFO_FAILED

Failed to process DrmInfo. This error event is sent when a processDrmInfo() call fails.

Constant Value: 2006 (0x000007d6)

TYPE_REMOVE_ALL_RIGHTS_FAILED

Added in API level 11
public static final int TYPE_REMOVE_ALL_RIGHTS_FAILED

Failed to remove all the rights objects associated with all DRM schemes.

Constant Value: 2007 (0x000007d7)

TYPE_RIGHTS_NOT_INSTALLED

Added in API level 11
public static final int TYPE_RIGHTS_NOT_INSTALLED

Something went wrong installing the rights.

Constant Value: 2001 (0x000007d1)

TYPE_RIGHTS_RENEWAL_NOT_ALLOWED

Added in API level 11
public static final int TYPE_RIGHTS_RENEWAL_NOT_ALLOWED

The server rejected the renewal of rights.

Constant Value: 2002 (0x000007d2)

Public constructors

DrmErrorEvent

Added in API level 11
public DrmErrorEvent (int uniqueId, 
                int type, 
                String message)

Creates a DrmErrorEvent object with the specified parameters.

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

Added in API level 12
public DrmErrorEvent (int uniqueId, 
                int type, 
                String message, 
                HashMap<StringObject> attributes)

Creates a DrmErrorEvent object with the specified parameters.

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.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page