public interface DefaultDrmSessionEventListener
DefaultDrmSessionManager events.| Modifier and Type | Method and Description |
|---|---|
void |
onDrmKeysLoaded()
Called each time keys are loaded.
|
void |
onDrmKeysRemoved()
Called each time offline keys are removed.
|
void |
onDrmKeysRestored()
Called each time offline keys are restored.
|
default void |
onDrmSessionAcquired()
Called each time a drm session is acquired.
|
void |
onDrmSessionManagerError(java.lang.Exception error)
Called when a drm error occurs.
|
default void |
onDrmSessionReleased()
Called each time a drm session is released.
|
default void onDrmSessionAcquired()
void onDrmKeysLoaded()
void onDrmSessionManagerError(java.lang.Exception error)
This method being called does not indicate that playback has failed, or that it will fail.
The player may be able to recover from the error and continue. Hence applications should
not implement this method to display a user visible error or initiate an application
level retry (Player.EventListener#onPlayerError is the appropriate place to implement
such behavior). This method is called to provide the application with an opportunity to log the
error if it wishes to do so.
error - The corresponding exception.void onDrmKeysRestored()
void onDrmKeysRemoved()
default void onDrmSessionReleased()