Most visited

Recently visited

Added in API level 23

MediaDrm.OnKeyStatusChangeListener

public static interface MediaDrm.OnKeyStatusChangeListener

android.media.MediaDrm.OnKeyStatusChangeListener


当drm会话中的键更改状态时要调用的回调的接口定义。

Summary

Public methods

abstract void onKeyStatusChange(MediaDrm md, byte[] sessionId, List<MediaDrm.KeyStatus> keyInformation, boolean hasNewUsableKey)

当会话中的密钥更改状态时调用,例如许可证更新或到期时。

Public methods

onKeyStatusChange

Added in API level 23
void onKeyStatusChange (MediaDrm md, 
                byte[] sessionId, 
                List<MediaDrm.KeyStatus> keyInformation, 
                boolean hasNewUsableKey)

当会话中的密钥更改状态时调用,例如许可证更新或到期时。

Parameters
md MediaDrm: the MediaDrm object on which the event occurred
sessionId byte: the DRM session ID on which the event occurred
keyInformation List: a list of MediaDrm.KeyStatus instances indicating the status for each key in the session
hasNewUsableKey boolean: indicates if a key has been added that is usable, which may trigger an attempt to resume playback on the media stream if it is currently blocked waiting for a key.

Hooray!