ExoMediaDrm.OnExpirationUpdateListener


public interface ExoMediaDrm.OnExpirationUpdateListener


Called when a session expiration update occurs.

Summary

Public methods

abstract void
onExpirationUpdate(
    ExoMediaDrm mediaDrm,
    byte[] sessionId,
    long expirationTimeMs
)

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

Public methods

onExpirationUpdate

abstract void onExpirationUpdate(
    ExoMediaDrm mediaDrm,
    byte[] sessionId,
    long expirationTimeMs
)

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

Parameters
ExoMediaDrm mediaDrm

The ExoMediaDrm object on which the event occurred.

byte[] sessionId

The DRM session ID on which the event occurred

long expirationTimeMs

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.