public class DrmEvent extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DRM_INFO_OBJECT
The key that is used in the
attributes HashMap to pass the
DrmInfo object. |
static String |
DRM_INFO_STATUS_OBJECT
The key that is used in the
attributes HashMap to pass the return status. |
static int |
TYPE_ALL_RIGHTS_REMOVED
All of the rights information associated with all DRM schemes have been successfully removed.
|
static int |
TYPE_DRM_INFO_PROCESSED
The given DRM information has been successfully processed.
|
Modifier | Constructor and Description |
---|---|
protected |
DrmEvent(int uniqueId,
int type,
String message)
Creates a
DrmEvent object with the specified parameters. |
protected |
DrmEvent(int uniqueId,
int type,
String message,
HashMap<String,Object> attributes)
Creates a
DrmEvent object with the specified parameters. |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String key)
Retrieves the attribute associated with the specified key.
|
String |
getMessage()
Retrieves the message description associated with this object.
|
int |
getType()
Retrieves the type of information that is associated with this object.
|
int |
getUniqueId()
Retrieves the unique session identifier associated with this object.
|
public static final int TYPE_ALL_RIGHTS_REMOVED
public static final int TYPE_DRM_INFO_PROCESSED
public static final String DRM_INFO_STATUS_OBJECT
attributes
HashMap to pass the return status.public static final String DRM_INFO_OBJECT
attributes
HashMap to pass the
DrmInfo
object.protected DrmEvent(int uniqueId, int type, String message, HashMap<String,Object> attributes)
DrmEvent
object with the specified parameters.uniqueId
- Unique session identifier.type
- Type of information.message
- Message description.attributes
- Attributes for extensible information.protected DrmEvent(int uniqueId, int type, String message)
DrmEvent
object with the specified parameters.uniqueId
- Unique session identifier.type
- Type of information.message
- Message description.public int getUniqueId()
public int getType()
public String getMessage()