docs/doc/reference/com/google/android/exoplayer2/drm/ExoMediaDrm.OnKeyStatusChangeListener.html
Package com.google.android.exoplayer2.drm
public static interfaceExoMediaDrm.OnKeyStatusChangeListener
Called when the keys in a DRM session change state.
See Also:MediaDrm.OnKeyStatusChangeListener
All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | onKeyStatusChange(ExoMediaDrm mediaDrm, byte[] sessionId, List<ExoMediaDrm.KeyStatus> exoKeyInformation, boolean hasNewUsableKey) |
Called when the keys in a session change status, such as when the license is renewed or expires.
|
-
void onKeyStatusChange([ExoMediaDrm](ExoMediaDrm.html "interface in com.google.android.exoplayer2.drm")mediaDrm,
byte[] sessionId,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[ExoMediaDrm.KeyStatus](ExoMediaDrm.KeyStatus.html "class in com.google.android.exoplayer2.drm")> exoKeyInformation,
boolean hasNewUsableKey)
Called when the keys in a session change status, such as when the license is renewed or expires.
Parameters:mediaDrm - The ExoMediaDrm object on which the event occurred.sessionId - The DRM session ID on which the event occurred.exoKeyInformation - A list of ExoMediaDrm.KeyStatus that contains key ID and status.hasNewUsableKey - Whether a new key became usable.