Skip to content

Commit

Permalink
Add some DRM logs (#17)
Browse files Browse the repository at this point in the history
Investigating a DRM issue.
  • Loading branch information
SylvainMorel authored Apr 15, 2024
1 parent a90c09b commit 993886a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ public void release(@Nullable DrmSessionEventListener.EventDispatcher eventDispa
currentKeyRequest = null;
currentProvisionRequest = null;
if (sessionId != null) {
Log.d(TAG, "DRM closeSession %s", sessionId); // MIREGO added logs
mediaDrm.closeSession(sessionId);
sessionId = null;
}
Expand Down Expand Up @@ -386,6 +387,7 @@ private boolean openInternal() {

try {
sessionId = mediaDrm.openSession();
Log.d(TAG, "DRM openSession %s", sessionId); // MIREGO added logs
mediaDrm.setPlayerIdForSession(sessionId, playerId);
cryptoConfig = mediaDrm.createCryptoConfig(sessionId);
state = STATE_OPENED;
Expand Down

0 comments on commit 993886a

Please sign in to comment.