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
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 |