Stay organized with collections Save and categorize content based on your preferences.

ExoMediaDrm.OnKeyStatusChangeListener

public interface ExoMediaDrm.OnKeyStatusChangeListener


Called when the keys in a DRM session change state.

Summary

Public methods

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

Public methods

onKeyStatusChange

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

Parameters
ExoMediaDrm mediaDrm

The ExoMediaDrm object on which the event occurred.

byte[] sessionId

The DRM session ID on which the event occurred.

List<ExoMediaDrm.KeyStatus> exoKeyInformation

A list of KeyStatus that contains key ID and status.

boolean hasNewUsableKey

Whether a new key became usable.