ExoMediaDrm.OnKeyStatusChangeListener


interface ExoMediaDrm.OnKeyStatusChangeListener


Called when the keys in a DRM session change state.

Summary

Public functions

Unit
onKeyStatusChange(
    mediaDrm: ExoMediaDrm!,
    sessionId: ByteArray!,
    exoKeyInformation: (Mutable)List<ExoMediaDrm.KeyStatus!>!,
    hasNewUsableKey: Boolean
)

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

Public functions

onKeyStatusChange

fun onKeyStatusChange(
    mediaDrm: ExoMediaDrm!,
    sessionId: ByteArray!,
    exoKeyInformation: (Mutable)List<ExoMediaDrm.KeyStatus!>!,
    hasNewUsableKey: Boolean
): Unit

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

Parameters
mediaDrm: ExoMediaDrm!

The ExoMediaDrm object on which the event occurred.

sessionId: ByteArray!

The DRM session ID on which the event occurred.

exoKeyInformation: (Mutable)List<ExoMediaDrm.KeyStatus!>!

A list of KeyStatus that contains key ID and status.

hasNewUsableKey: Boolean

Whether a new key became usable.