Headphone controls aren't interacting with music-app

Bug #1231909 reported by Simon K
74
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Ubuntu Music App
Invalid
Wishlist
Unassigned

Bug Description

In Android and iOS (and others) you have the ability to change music-tracks via a remote attached to the headphones.

In Android/iOS you can switch tracks by holding the middle button of your headset.
A short press will pause/unpause or start the music.

What I think needs to be implemented (feel free to remove this for a blueprint or similar):
1. Music-App:
To make it possible for an extern program to interact with music-apps "now playing" music app has to define a interface though.

2. Background-Service/Mir/Daemon:
I think there needs to be a "higher component" (a daemon or Mir?) which registers those button presses as "Shortcuts" or something simmilar, I don't however know who to tag except music-app.

3. Linux-Kernel:
Mapping the headphone-buttons to a event the implementation of "2." can poll/listen to.
At least for Android-Compatible headphones this is already implemented, If I press my headset-button in the terminal-app I can see a "~" char appearing.

Revision history for this message
Victor Thompson (vthompson) wrote :

Thanks! Eventually we'll get someone to look into this--but it won't make it into 13.10. Sorry.

Changed in music-app:
importance: Undecided → Low
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

I guess this would be done in a similar way to media keys on the desktop which work via DBus?

But yeah this should be targeted for after 13.10.

Daniel Holm (danielholm)
Changed in music-app:
status: New → Confirmed
David Planella (dpm)
Changed in music-app:
status: Confirmed → Triaged
importance: Low → Wishlist
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

This may have been fixed with bug 1398427 as the code [0] change mentions media keys, I will check when I next have access to a headset with media-keys.

0 - https://code.launchpad.net/~rsalveti/qtmir/wired_hs_keys/+merge/243720

Revision history for this message
Scott Hodgson (lgnux) wrote :

It would be nice to have the bluetooth buttons work as well.

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

I think that hardware media keys are now working (eg from a keyboard or USB)? Bluetooth ones are being tracked under bug 1398193.

As this is such an old bug I'm going to mark this as invalid, if this is still an issue please report a bug against media-hub (https://bugs.launchpad.net/ubuntu/+source/media-hub).

Changed in music-app:
status: Triaged → Invalid
Revision history for this message
zubozrout (zubozrout) wrote :

Hmm, the last time I checked regular jack headphones with a button could not interact with music-app but since all the current Ubuntu phones are now dead and mostly not updated I guess it may be fixed in the new music-app and system releases. I have no way to test this though.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.