Bug 497070 - Support proper android media controls (by implementing MediaSession api)
Summary: Support proper android media controls (by implementing MediaSession api)
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-05 09:01 UTC by Thibault Molleman
Modified: 2025-04-26 17:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thibault Molleman 2024-12-05 09:01:32 UTC
Currently Elisa doesn't seem to use the MediaSession api in android, resulting in it not showing up as playing media in the notifications section, like any other music app does. Which means that bluetooth controls can't interact with Elisa. You have to open Elisa to pause etc. Elisa won't stop playing if you start playing other media


https://developer.android.com/media/implement/surfaces/mobile
Comment 1 Bug Janitor Service 2025-04-19 07:40:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/682
Comment 2 Tobias Fella 2025-04-26 17:44:02 UTC
Git commit db4750279940658123e70f64b37068b3856ddcad by Tobias Fella, on behalf of Pedro Nishiyama.
Committed on 26/04/2025 at 17:31.
Pushed by tfella into branch 'master'.

Android: Implement MediaSession API
Related: bug 502463

M  +1    -1    REUSE.toml
M  +19   -2    android/AndroidManifest.xml
M  +2    -0    android/build.gradle
A  +9    -0    android/res/drawable/ic_next.xml
A  +9    -0    android/res/drawable/ic_pause.xml
A  +9    -0    android/res/drawable/ic_play.xml
A  +9    -0    android/res/drawable/ic_previous.xml
A  +-    --    android/res/mipmap-hdpi/ic_notification_elisa.png
A  +-    --    android/res/mipmap-mdpi/ic_notification_elisa.png
A  +-    --    android/res/mipmap-xhdpi/ic_notification_elisa.png
A  +-    --    android/res/mipmap-xxhdpi/ic_notification_elisa.png
A  +-    --    android/res/mipmap-xxxhdpi/ic_notification_elisa.png
M  +19   -2    android/src/org/kde/elisa/ElisaActivity.java
M  +238  -4    android/src/org/kde/elisa/ElisaService.java

https://invent.kde.org/multimedia/elisa/-/commit/db4750279940658123e70f64b37068b3856ddcad