Plans for Updating Better Player to Support Newer ExoPlayer Versions? #1348
salahelden18
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Better Player maintainers,
First, thank you for developing and maintaining the Better Player plugin. It's been an essential tool for enhancing video playback in my Flutter applications.
I've been experiencing a significant issue when integrating Better Player with other plugins that depend on newer versions of ExoPlayer, specifically the just_audio plugin for audio playback.
Issue Description:
Conflict with ExoPlayer Versions: Better Player currently depends on an older version of ExoPlayer (e.g., 2.17.x), while just_audio relies on a newer version (e.g., 2.18.x or higher).
Runtime Error: When both plugins are included in the project, a NullPointerException occurs due to changes in the ExoPlayer API:
java.lang.NullPointerException: MediaSource.Factory#setDrmSessionManagerProvider no longer handles null by instantiating a new DefaultDrmSessionManagerProvider. Explicitly construct and pass an instance in order to retain the old behavior.
Cause: In ExoPlayer 2.18.0 and above, passing null to setDrmSessionManagerProvider is no longer acceptable, and it requires a non-null DrmSessionManagerProvider. This change affects Better Player's compatibility with the newer ExoPlayer versions.
Request:
Thank you for your time and consideration. I appreciate any insights or assistance you can provide.
Best regards,
salahelden
Beta Was this translation helpful? Give feedback.
All reactions