Megosztás a következőn keresztül:


MediaPlayer.IOnDrmPreparedListener.OnDrmPrepared Method

Definition

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

[Android.Runtime.Register("onDrmPrepared", "(Landroid/media/MediaPlayer;I)V", "GetOnDrmPrepared_Landroid_media_MediaPlayer_IHandler:Android.Media.MediaPlayer/IOnDrmPreparedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public void OnDrmPrepared (Android.Media.MediaPlayer? mp, Android.Media.PrepareDrmStatus status);
[<Android.Runtime.Register("onDrmPrepared", "(Landroid/media/MediaPlayer;I)V", "GetOnDrmPrepared_Landroid_media_MediaPlayer_IHandler:Android.Media.MediaPlayer/IOnDrmPreparedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member OnDrmPrepared : Android.Media.MediaPlayer * Android.Media.PrepareDrmStatus -> unit

Parameters

mp
MediaPlayer

the MediaPlayer associated with this callback

status
PrepareDrmStatus

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.

Attributes

Remarks

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

Java documentation for android.media.MediaPlayer.OnDrmPreparedListener.onDrmPrepared(android.media.MediaPlayer, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to