-
-
Notifications
You must be signed in to change notification settings - Fork 680
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
Fix issue #980 migrate from ExoPlayer to Media3 #1325
base: minor
Are you sure you want to change the base?
Conversation
Thanks! This is definitely appreciated. Before merging, I'd like to coordinate this with audio_session and maybe audio_service, although migrating audio_service to media3 is a much bigger ordeal that I'm not looking forward to, and perhaps it is not necessary if audio_service "as is" still works with your PR. However, migrating audio_session should be a much simpler task. Can you format your ChangeLog entry as per CONTRIBUTING.md? |
implementation "com.google.android.exoplayer:exoplayer-dash:$exoplayer_version" | ||
implementation "com.google.android.exoplayer:exoplayer-hls:$exoplayer_version" | ||
implementation "com.google.android.exoplayer:exoplayer-smoothstreaming:$exoplayer_version" | ||
def exoplayer_version = "1.0.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please consider using the latest 1.4.1 version of media3 exo player
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the feedback. And good point, I had a quick look at using the latest version and that is not so trivial unfortunately. It would be easy to switch to version 1.1.1 but anything newer would require several code changes. The class ConcatenatingMediaSource was deprecated and removed from the media3 library. I will have a look at what changes are required to jump to the latest version. But it might also be worth considering to split it in two separate pull requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to say we can just do an intermediate release with version 1.1.1 and then work on 1.4.1, but video_player uses 1.4.1, and we have seen version conflicts occur before in apps that use both plugins when the exoplayer dependencies aren't in sync.
Let me take a look at this and see if I can tackle 1.4.1 using this PR as a starting point...
Updated just_audio from ExoPlayer (deprecated) to Media3.