added in API level 26

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

added in API level 26
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 PREPARE_DRM_STATUS_SUCCESS, PREPARE_DRM_STATUS_PROVISIONING_NETWORK_ERROR, PREPARE_DRM_STATUS_PROVISIONING_SERVER_ERROR, or PREPARE_DRM_STATUS_PREPARATION_ERROR.