Feat: media3 & android auto
A work in progress pull request building on subset of @lovegaoshi's work at https://github.com/lovegaoshi/react-native-track-player
- without crossfading support
- without widget code in the example app
- adds backwards support for
Capability.JumpBackwardandCapability.JumpForwardnotification buttons. - todo: notification icon customization needs to be readded
- todo: reconsider the custom notification buttons api
- todo: Apple Carplay possibly using a shared api with Android Auto
This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 7 days with no activity.
@puckey I was trying to pick up where you left off, and it looks like it runs fine after pulling in changes from main.
For those icons in media3, it sounds like you need to add drawable icons with specific names, so if that's true, we'd probably just need to remove that config and update the docs. I wasn't having much luck testing that out in the example folder, but I can keep digging into that, unless you have any ideas there.
https://developer.android.com/reference/androidx/media3/session/DefaultMediaNotificationProvider#drawables
It seems like apple carplay should be in a separate pr, so these media3 updates can get merged in for now at least.
Is there anything else that still needs to be done on this?
@lovegaoshi Could you please get this conflicts sorted. As migrating to androidx.media3 is required. I am still facing Unable to start service MusicService with null: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false issue in my app.
Hoping once the media3 is implemented this will fix the issue.
closing this in favor of https://github.com/doublesymmetry/react-native-track-player/pull/2478