Skip to content
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

[Feature Request] Android Media3 migration #2373

Closed
lovegaoshi opened this issue Sep 17, 2024 · 1 comment
Closed

[Feature Request] Android Media3 migration #2373

lovegaoshi opened this issue Sep 17, 2024 · 1 comment

Comments

@lovegaoshi
Copy link
Contributor

lovegaoshi commented Sep 17, 2024

What is the need and use case of this feature?
migrate from long deprecated exoplayer2 to media3, as seen in https://developer.android.com/media/media3/exoplayer/migration-guide

Describe the ideal solution
i'm reviving this thread: #2252 as I did some research on the flutter RNTP audio_service about how they handled MediaLibraryService, NotificationManager, referred to my previous work and worked/still working on my own migration. I believe I'm quite close at only needing to implement custom commands, and others seem to be functional. Some of the takeaways:

The real media3 migration (deprecating NotificationManager) is quite a large rewrite and given the amount of attention this lib gets, I dont see it getting anywhere at the moment. luckily from audio_service and what I've tried, NotificationManager can just stay as it is.

audio_service also opted to use MediaBrowserServiceCompat and MediaSessionCompat instead of the new MediaLibraryService (which requires a small overhaul on data representation) and this would require no/few changes in my android auto work.

the actual grunt media3 migration work goes quite smoothly as only MediaSession has changed APIs from MediaSessionCompat, others have their direct drop-in replacements in media3.

im also working on a complete migration to media3 (MediaLibraryService) at https://github.com/lovegaoshi/react-native-track-player/tree/APM-media3.

Describe alternatives you've considered
N/A

Additional context
https://github.com/lovegaoshi/KotlinAudio/tree/chore-media3

How I can Help
N/A

@lovegaoshi
Copy link
Contributor Author

lovegaoshi commented Oct 11, 2024

i fullymigrated to media3. closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant