owncloud / owncloud/android

[FEATURE REQUEST] Migrate to Media3 for Audio Media

Open
#4,264 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature request
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 MediaItem this 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.