-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExoPlayer NPE on playing DRM content #6951
Comments
Can you provide repro steps for this in the demo app? |
I encountered this issue as well today after upgrading from 2.9.6 to 2.11.1. It looks like this is the check that's causing an issue. ExoPlayer/library/core/src/main/java/com/google/android/exoplayer2/drm/DefaultDrmSessionManager.java Line 563 in 76962d5
exoMediaDrm is initialized and uninitialized here ExoPlayer/library/core/src/main/java/com/google/android/exoplayer2/drm/DefaultDrmSessionManager.java Lines 424 to 439 in 76962d5
So I was able to get around it by calling prepare when my stream is prepared, and release when my stream is stopped, on my instance of DrmSessionManager, both calls that I didn't have to make before the upgrade. Hope this helps you find a workaround, or resolve the cause of the issue. |
You can fix this without waiting for an update by migrating off APIs that inject DRM Session Manager into the renderers. In your case, I suspect you are using a DefaultRenderersFactory that takes a DrmSessionManager as parameter. You should inject that DrmSessionManager into the MediaSources instead. Please let me know if that works for you. |
Hi, I have the same issue. Is there fix available for this? If this has been addressed in 2.11.2, where can I find the .aar files? |
Issue: #6951 PiperOrigin-RevId: 294187695
@harini113 - A way to fix this is described in the post directly above your question. A fix will also be included in 2.11.2 (it's not available yet; it will be available later this week). |
Issue: #6951 PiperOrigin-RevId: 294187695
Getting stacktrace below when trying to play DRM video on Android TV api ver 28
Version of ExoPlayer being used: 2.11.1
Stacktrace:
Seems like some parameter excepted as not-null in Kotlin is null, but i can't see which exactly
The text was updated successfully, but these errors were encountered: