ExoMediaDrm.OnExpirationUpdateListener


interface ExoMediaDrm.OnExpirationUpdateListener


Called when a session expiration update occurs.

Summary

Public functions

Unit
onExpirationUpdate(
    mediaDrm: ExoMediaDrm!,
    sessionId: ByteArray!,
    expirationTimeMs: Long
)

Called when a session expiration update occurs, to inform the app about the change in expiration time.

Public functions

onExpirationUpdate

fun onExpirationUpdate(
    mediaDrm: ExoMediaDrm!,
    sessionId: ByteArray!,
    expirationTimeMs: Long
): Unit

Called when a session expiration update occurs, to inform the app about the change in expiration time.

Parameters
mediaDrm: ExoMediaDrm!

The ExoMediaDrm object on which the event occurred.

sessionId: ByteArray!

The DRM session ID on which the event occurred

expirationTimeMs: Long

The new expiration time for the keys in the session. The time is in milliseconds, relative to the Unix epoch. A time of 0 indicates that the keys never expire.