frank90psi / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
GNU General Public License v2.0
0 stars 0 forks source link

Multimedia keys (key MM) not only through GNOME but also (simultaneously) through X-server (X.org). #328

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Whether it is possible to make so that multimedia keys (MM keys) worked not
only through GNOME, but (simultaneously) and through X-server (X.org) how,
for example becomes in musical player Audacious?

It is necessary that users of others DE (for example XFCE (or KDE:))) could
use also key MM in GNOME Mplayer.

Whether there will be for this purpose an additional customisation, or it
will be united with that that already is, not important.

Best Regards.

PS.

Once again forgive for bad English language. I Russianman, and i use the
program the translator.

Original issue reported on code.google.com by unihorn1...@gmail.com on 29 Nov 2009 at 1:31

GoogleCodeExporter commented 8 years ago
The multimedia keys are currently handled by dbus events from the gnome setting
daemon. As the media keys are not normally passed to applications unless they 
have
been defined to X. 

I will add the codes in if you can tell me what codes your keyboard is sending 
to the
application.

Original comment by kdeko...@gmail.com on 29 Nov 2009 at 9:41

GoogleCodeExporter commented 8 years ago
Try to copy the given code from SMPlayer, or Audacious (it corresponding, a 
plug-in
(how much I remember it))

Having added processing multimedia keys through X events, it is necessary to 
save and
processing of multimedia keys through dbus events (as in Audacious). It is 
necessary
because at the included processing of multimedia keys through dbus events, X - 
keys
will be locked: GNOME are currently handled by dbus events (but in others DE,
processing of multimedia keys through X events is necessary)...

>I will add the codes in if you can tell me what codes your keyboard is sending 
to the
application.

I am bad in I understand this question, but, I will try to talk to other people 
that
it understand....

Original comment by unihorn1...@gmail.com on 30 Nov 2009 at 4:17

GoogleCodeExporter commented 8 years ago
>I am bad in I understand this question, but, I will try to talk to other 
people that
it understand....

I spoke with kda from 
http://forum.altlinux.org/index.php?topic=4620.new;topicseen#new

The player should react on keysum keys registered as multimedia in Xmodmap. For 
example:

cat /usr/share/X11/XKeysymDB | grep XF86Audio
XF86AudioLowerVolume    :1008FF11
XF86AudioMute       :1008FF12
XF86AudioRaiseVolume    :1008FF13
XF86AudioPlay       :1008FF14
XF86AudioStop       :1008FF15
XF86AudioPrev       :1008FF16
XF86AudioNext       :1008FF17
XF86AudioRecord     :1008FF1C
XF86AudioPause      :1008FF31
XF86AudioMedia      :1008FF32
XF86AudioRewind     :1008FF3E
XF86AudioForward    :1008FF97
XF86AudioRepeat     :1008FF98
XF86AudioRandomPlay :1008FF99
XF86AudioCycleTrack :1008FF9B

It?

Concrete implementation can be looked in code SMplayer, Audacious, or any other
player with multimedia keys through X.

Best Regards.

Original comment by unihorn1...@gmail.com on 1 Dec 2009 at 10:52

GoogleCodeExporter commented 8 years ago
What keycode to assign (on above enumerated), business of the one who will 
assign it.

Best Regards.

Original comment by unihorn1...@gmail.com on 1 Dec 2009 at 11:45

GoogleCodeExporter commented 8 years ago
I believe these keys can be managed via xmodmap

http://en.gentoo-wiki.com/wiki/Multimedia_Keys#Command_Line_Functions_to_Control
_Common_Applications

gnome-mplayer has a complete dbus interface that is documented here: 

http://code.google.com/p/gnome-mplayer/source/browse/trunk/DOCS/tech/dbus.txt

I did some more testing with this on my machine and never saw these keys 
trigger any
event in my application via the keyboard interface. 

Original comment by kdeko...@gmail.com on 16 Dec 2009 at 9:45

GoogleCodeExporter commented 8 years ago

Original comment by kdeko...@gmail.com on 21 Oct 2010 at 2:34