# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

# MediaPlayer.OnDrmPreparedListener

`public static interface MediaPlayer.OnDrmPreparedListener`
``

android.media.MediaPlayer.OnDrmPreparedListener

Interface definition of a callback to notify the app when the DRM is ready for key request/response

## Summary

### Public methods
`abstract void` | `onDrmPrepared(MediaPlayer mp, int status)` Called to notify the app that prepareDrm is finished and ready for key request/response

## Public methods

### onDrmPrepared

    public abstract void onDrmPrepared (MediaPlayer mp,
                    int status)

Called to notify the app that prepareDrm is finished and ready for key request/response

Parameters
`mp` | `MediaPlayer`: the `MediaPlayer` associated with this callback
`status` | `int`: the result of DRM preparation which can be `MediaPlayer.PREPARE_DRM_STATUS_SUCCESS`, `MediaPlayer.PREPARE_DRM_STATUS_PROVISIONING_NETWORK_ERROR`, `MediaPlayer.PREPARE_DRM_STATUS_PROVISIONING_SERVER_ERROR`, or `MediaPlayer.PREPARE_DRM_STATUS_PREPARATION_ERROR`. Value is `MediaPlayer.PREPARE_DRM_STATUS_SUCCESS`, `MediaPlayer.PREPARE_DRM_STATUS_PROVISIONING_NETWORK_ERROR`, `MediaPlayer.PREPARE_DRM_STATUS_PROVISIONING_SERVER_ERROR`, or `MediaPlayer.PREPARE_DRM_STATUS_PREPARATION_ERROR`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*