Yes, but it seems to me that individual applications would not be able to achieve this kind of functionality (being able to detect if any other arbitrary application is playing at the moment). This sounds more like an OS-level feature for me. And since the sound menu already has access to play/pause all the media players and control their volume through the new sound menu, it seems possible for it to catch all the media keys as well and make the best choice on who to forward the action to.
On Fri, Apr 11, 2014 at 4:09 PM, Lars Uebernickel < [email protected]> wrote: > It is up to the applications to grab media keys if they're playing > something. The sound menu doesn't listen to those keys at all. > > Please file a bug against individual applications if they don't support > media keys. The latest spotify does listen to those keys. > > ** Changed in: indicator-sound > Status: New => Invalid > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1081728 > > Title: > Media hotkeys should act on the last active music player > > To manage notifications about this bug go to: > https://bugs.launchpad.net/indicator-sound/+bug/1081728/+subscriptions > -- You received this bug notification because you are a member of Unity API bugs, which is subscribed to The Sound Menu. https://bugs.launchpad.net/bugs/1081728 Title: Media hotkeys should act on the last active music player Status in Sound Menu: Invalid Bug description: Curently, play/pause/previous/next hotkeys (e.g. special keyboard media keys or other keys that are defined as shortcuts) work only for the default music player (Rhythmbox), so for example if I'm listening to music in Spotify and want to pause it - the pause button doesn't do anything. Expected behaviour - the sound menu (or some other background service) should keep track of the player that played music last (or is still playing it) and redirect all the hotkey actions to it. It would be awesome, for example, if I could pause Youtube videos using these keys when they are the ones playing at the moment (of course, once the movie ends, and its sound menu controls disappear, the last active player would be the one that was playing before it). To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-sound/+bug/1081728/+subscriptions -- Mailing list: https://launchpad.net/~unity-api-bugs Post to : [email protected] Unsubscribe : https://launchpad.net/~unity-api-bugs More help : https://help.launchpad.net/ListHelp

