public interface

ExoMediaDrm.OnKeyStatusChangeListener

 androidx.media3.exoplayer.drm.ExoMediaDrm.OnKeyStatusChangeListener

Overview

Called when the keys in a DRM session change state.

Summary

Methods
public voidonKeyStatusChange(ExoMediaDrm mediaDrm, byte[] sessionId[], java.util.List<ExoMediaDrm.KeyStatus> exoKeyInformation, boolean hasNewUsableKey)

Called when the keys in a session change status, such as when the license is renewed or expires.

Methods

public void onKeyStatusChange(ExoMediaDrm mediaDrm, byte[] sessionId[], java.util.List<ExoMediaDrm.KeyStatus> 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.