[FEATURE REQUEST] Migrate to Media3 for Audio Media
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 4.2k
- Forks
- 3.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 7
Description
For handling Audio media we're using PreviewAudioFragment which handles it using Android's built-in MediaPlayer.
Instead we can use Media3 which will have number of pros than to use the built-in one which includes but not limited to -->
-
Less code for doing the same thing
-
Easier to use
-
Out of the box media control (Play,Pause,Next etc) handling from bluetooth headphones, earphones or google assistant.
-
Handling playlists rather than single
MediaItemthis way we can even pass it a list of media. We can finally integrate a functionality
which has been asked in this feature request #4149 -
You can read Pros and Cons from the Android Developers site here.
Let me know what you think and I would like to work on it if everthing seems good.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating PreviewAudioFragment and reviewing how it uses Android's built-in MediaPlayer. Then compare the proposed Media3 approach with the requirements in issue #4149, including media controls and playlist support. The issue does not define a specific acceptance test or complete migration scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100