public static interface DefaultDrmSessionManager.EventListener
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.
|
void |
onDrmSessionManagerError(java.lang.Exception e)
Called when a drm error occurs.
|
void onDrmKeysLoaded()
void onDrmSessionManagerError(java.lang.Exception e)
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.
e - The corresponding exception.void onDrmKeysRestored()
void onDrmKeysRemoved()