-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG] java.lang.NullPointerException: MediaSource.Factory#setDrmSessionManagerProvider no longer handles null #1327
Comments
I have the same issue |
I also have the same issue. |
hey, i have resolved the drm issue. |
Is this issue resolved? I am still facing this issue with better_player. However, this is not the only package with the issue. I face similar issue with cached_network_image where it works fine on iOS and not on Android. Similarly, shared_preferences throws exception when running the app on Android but not on iOS. |
I'm getting the error:
Any chance you can submit a PR for this fix? |
fixed it |
I'm encountering a NullPointerException when using the better_player library on Android. The error seems to occur during video playback, with the following message:
This issue is happening on Android, but the same video works perfectly fine on iOS.
Steps to reproduce:
Implement video playback using better_player on Android.
Run the app and attempt to play a video.
The app crashes with the above error.
Expected behavior: The video should play normally on Android, similar to how it behaves on iOS.
Environment:
Library version: 0.0.84
Flutter version: 3.24.2
Device: Android
Additional Context: It seems like the MediaSource.Factory method is no longer instantiating a DefaultDrmSessionManagerProvider automatically when null is passed, causing the crash. Explicitly passing an instance of DefaultDrmSessionManagerProvider might resolve the issue.
Please look into this as it severely impacts video playback functionality on Android.
The text was updated successfully, but these errors were encountered: