[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amarok-bugs-dist
Subject:    [amarok] [Bug 240726] Seperate shortcuts for play and pause
From:       James Hogan <bugzilla_noreply () kde ! org>
Date:       2017-09-01 11:19:53
Message-ID: bug-240726-71684-LFwd4Nm715 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=240726

James Hogan <james@albanarts.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |james@albanarts.com

--- Comment #2 from James Hogan <james@albanarts.com> ---
I have a slightly different use case for this. I have a set of bluetooth
headphones (Plantronics backbeat pro) which has a sensor on the left side so it
knows when you take it off your ear. When that happens it sends XF86AudioPause:

KeyRelease event, serial 41, synthetic NO, window 0x9a00001,
    root 0xd3, subw 0x9a00002, time 67076582, (62,54), root:(1800,898),
    state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen
YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

and when you put it back on your ear it sends XF86AudioPlay:

KeyRelease event, serial 41, synthetic NO, window 0x9a00001,
    root 0xd3, subw 0x9a00002, time 67077375, (62,54), root:(1800,898),
    state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
    XKeysymToKeycode returns keycode: 172
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

It also has a play/pause button on that side, which again alternates sending
separate XF86AudioPlay / XF86AudioPause.

This works great on an android phone. if somebody wants your attention you just
take it off your head and it pauses and then plays immediately when putting it
back on.

Trying to get that to work with amarok is a right pain, especially in
combination with the Play/Pause button I have on my keyboard. I had a script
which attempted it, but had issues with xmodmap and its since stopped working.
At the moment I have Play mapped to Play/Pause, and have to press the button
twice after putting it back on my head as it doesn't pause when taking it off,
and pauses when i put it back on, then the button sends another pause followed
by play on second press which amarok finally interprets as play. Frustrating.

It'd be far better to have separate Play, Pause and PlayPause events which you
can bind different keys to.

-- 
You are receiving this mail because:
You are the assignee for the bug.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic