mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Tweak new drm listener method. Fix demo app
This commit is contained in:
parent
6cb029d8c1
commit
e652019bb3
2 changed files with 8 additions and 4 deletions
|
|
@ -447,6 +447,11 @@ public class DemoPlayer implements ExoPlayer.Listener, ChunkSampleSource.EventLi
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDrmKeysLoaded() {
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDrmSessionManagerError(Exception e) {
|
||||
if (internalErrorListener != null) {
|
||||
|
|
|
|||
|
|
@ -51,10 +51,9 @@ public class StreamingDrmSessionManager implements DrmSessionManager {
|
|||
public interface EventListener {
|
||||
|
||||
/**
|
||||
* Invoked when DRM keys have been loaded. Depending on license setup, this might occur multiple
|
||||
* times during playback.
|
||||
* Invoked each time keys are loaded.
|
||||
*/
|
||||
void onKeysLoaded();
|
||||
void onDrmKeysLoaded();
|
||||
|
||||
/**
|
||||
* Invoked when a drm error occurs.
|
||||
|
|
@ -396,7 +395,7 @@ public class StreamingDrmSessionManager implements DrmSessionManager {
|
|||
eventHandler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
eventListener.onKeysLoaded();
|
||||
eventListener.onDrmKeysLoaded();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue