Keyboard multimedia support

Feature requests for VLC.
woohoomoo
New Cone
New Cone
Posts: 6
Joined: 21 Mar 2007 14:44

Keyboard multimedia support

Postby woohoomoo » 18 Jun 2007 19:57

I've always thought that VLC was missing the ability to make use of the multimedia keys on some keyboards, so I bring this topic to your attention in the hope that the development team is able to map the keys to VLC.

As an example, I have a Saitek Eclipse II keyboard. It has fast forward and rewind buttons, play/pause, and stop. Works fine in Windows Media Player, but they are useless in VLC. Just seems a shame that VLC doesnt make use of the multimedia buttons on keyboards.

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Postby CloudStalker » 18 Jun 2007 20:42

Fixed in next version. :D

woohoomoo
New Cone
New Cone
Posts: 6
Joined: 21 Mar 2007 14:44

Re: Keyboard multimedia support

Postby woohoomoo » 28 Jun 2007 15:46

Excellent news! :D Not sure what the general policy is on asking, but is there any ETA on the next version which will include this feature?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Keyboard multimedia support

Postby Jean-Baptiste Kempf » 28 Jun 2007 16:19

Excellent news! :D Not sure what the general policy is on asking, but is there any ETA on the next version which will include this feature?
When it is ready!
:P
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Keyboard multimedia support

Postby dionoea » 01 Jul 2007 00:49

Ahem, I added the multimedia key support in the development version a long time ago and it made it in the stable branch on August 31 2006. So it definitively should be in 0.8.6c. You need to bind the keys to something useful in the preferences before being able to use them. AFAIK, they work fine when focus is on the video output or on the skins2 interface, they don't when the wxWidgets (default) interface has focus. I believe that jb added support for those in the new Qt interface for 0.9.0.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

DGMurdockIII
Big Cone-huna
Big Cone-huna
Posts: 534
Joined: 14 Sep 2006 16:46
VLC version: y
Operating System: windows 10 64bit Pro
Contact:

Re: Keyboard multimedia support

Postby DGMurdockIII » 17 Jul 2007 00:02

if we have to add them i dont see where or how i see how to change hotkeys but not to add the play or stop buttons that are on your keyboard

AndyMan1
New Cone
New Cone
Posts: 2
Joined: 17 Jul 2007 04:08

Re: Keyboard multimedia support

Postby AndyMan1 » 17 Jul 2007 04:24

Brand new here, so forgive me if this deserves another thread etc.

On the topic of keyboard support, is there any reason why VLC doesn't have the numpad mapped? Can it *please* be mapped?

I've got (an admittedly kooky) setup where I am using a wireless numpad as a "remote,"

I was really hoping to map out the numpad so 4 skips back, 6 skips forward, 8 volume up, 2 volume down, 5 pause, etc. But no option was available for that.

I've dug around looking for answers, finally found myself in vlc_keys.h and it looks like no numeric keys are defined in the first place.

So any chance this can be added into the next release?

if not, any guesses as to whether the mapping is dirt simple ({ "1", '1' },{ "2", '2' },etc.) or requires a special hex code, so I can compile it myself?

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Re: Keyboard multimedia support

Postby CloudStalker » 17 Jul 2007 04:27

if we have to add them i dont see where or how i see how to change hotkeys but not to add the play or stop buttons that are on your keyboard
:?: :?: :?:

Here's how you change hotkeys: Select VLc media player and the go to Tools > Preferences > Interface > Hotkeys settings > (check the "Advanced options" box) select the key you want to assign (play/puase for example) Then from the drop-list on the far right corner, scroll down and select the media key you want to assign.

DGMurdockIII
Big Cone-huna
Big Cone-huna
Posts: 534
Joined: 14 Sep 2006 16:46
VLC version: y
Operating System: windows 10 64bit Pro
Contact:

Re: Keyboard multimedia support

Postby DGMurdockIII » 17 Jul 2007 04:58

i did it right but its still kinda buggy BTW i have a zbord if that has any problems with it

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Keyboard multimedia support

Postby Jean-Baptiste Kempf » 17 Jul 2007 10:25

Brand new here, so forgive me if this deserves another thread etc.

On the topic of keyboard support, is there any reason why VLC doesn't have the numpad mapped? Can it *please* be mapped?

I've got (an admittedly kooky) setup where I am using a wireless numpad as a "remote,"

I was really hoping to map out the numpad so 4 skips back, 6 skips forward, 8 volume up, 2 volume down, 5 pause, etc. But no option was available for that.

I've dug around looking for answers, finally found myself in vlc_keys.h and it looks like no numeric keys are defined in the first place.

So any chance this can be added into the next release?

if not, any guesses as to whether the mapping is dirt simple ({ "1", '1' },{ "2", '2' },etc.) or requires a special hex code, so I can compile it myself?
laptops?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

AndyMan1
New Cone
New Cone
Posts: 2
Joined: 17 Jul 2007 04:08

Re: Keyboard multimedia support

Postby AndyMan1 » 17 Jul 2007 16:41

Brand new here, so forgive me if this deserves another thread etc.

On the topic of keyboard support, is there any reason why VLC doesn't have the numpad mapped? Can it *please* be mapped?

I've got (an admittedly kooky) setup where I am using a wireless numpad as a "remote,"

I was really hoping to map out the numpad so 4 skips back, 6 skips forward, 8 volume up, 2 volume down, 5 pause, etc. But no option was available for that.

I've dug around looking for answers, finally found myself in vlc_keys.h and it looks like no numeric keys are defined in the first place.

So any chance this can be added into the next release?

if not, any guesses as to whether the mapping is dirt simple ({ "1", '1' },{ "2", '2' },etc.) or requires a special hex code, so I can compile it myself?
laptops?
what about them?

DGMurdockIII
Big Cone-huna
Big Cone-huna
Posts: 534
Joined: 14 Sep 2006 16:46
VLC version: y
Operating System: windows 10 64bit Pro
Contact:

Re: Keyboard multimedia support

Postby DGMurdockIII » 17 Jul 2007 21:22

It not a laptop it a USB keyboard Called a Zboard here is the website for the keyboard http://www.ideazon.com/us/products/zboa ... yboard.asp

jacksnodgrass
New Cone
New Cone
Posts: 5
Joined: 21 Sep 2006 22:44

Re: Keyboard multimedia support

Postby jacksnodgrass » 23 Jul 2007 11:46

I can't get this to work either....
I have:
VLC media player 0.8.6c
USB Multimedia Keyboard with play/pause, next, previous, and stop buttons

I can go into gnome-keybinding-properties and gnome 'sees' my keys... I've mapped
them to the play/pause, next, previous and stop actions....

I can start VLC ( and go to the skins2 interface ) and get to the 'hotkey' seetings, but
if I manually select "Media Stop", "Media Play Pause" etc, my keys on my keyboard
do not have any effect. I can not use those keys to select the option from the
pulldown box. I'd prefer that when I selected the hotkey for 'stop' that I'd just
press the 'stop' key on my keyboard and vlc would read that key and use that
for the stop.... not sure where the 'Multimedia Stop' value is supposed to map
to my keyboard stop key.....

anyway... I think I've done what VLC wants... but it doesn't work.

jack

lwc
Blank Cone
Blank Cone
Posts: 45
Joined: 24 Jan 2007 15:08

Re: Keyboard multimedia support

Postby lwc » 29 Dec 2007 02:14

I don't get it either. Why does it ignore my settings if I choose any of the multimedia buttons?!

Just like MPC, it should automatically support multimedia buttons. Also, MPC has a whole field just for "Application Commands" in addition to regular buttons. In VLC I have to, say, stop using "space" for play/pause if favor of the multimedia buttons (had they worked).

P.S.
Another issue is that I have to restart VLC so hotkeys settings would take effect (not that it helps with multimedia buttons).

DGMurdockIII
Big Cone-huna
Big Cone-huna
Posts: 534
Joined: 14 Sep 2006 16:46
VLC version: y
Operating System: windows 10 64bit Pro
Contact:

Re: Keyboard multimedia support

Postby DGMurdockIII » 27 Mar 2008 05:22

same issue

DGMurdockIII
Big Cone-huna
Big Cone-huna
Posts: 534
Joined: 14 Sep 2006 16:46
VLC version: y
Operating System: windows 10 64bit Pro
Contact:

Re: Keyboard multimedia support

Postby DGMurdockIII » 29 Mar 2008 21:48


akagambit
New Cone
New Cone
Posts: 4
Joined: 08 May 2008 16:30

Re: Keyboard multimedia support

Postby akagambit » 08 May 2008 18:35

I just bought a new HP Pavilion dv6000 and found the media keys don't work...honestly I am surprised that some kind of media key plugin has not been made for VLC the code is obviously out there to do it since there has been user made plugins for Foobar2000, Winamp and iTunes. I dunno what it is with VLC's media key functions but they don't work on any PC or laptop I use them with but maybe its just me...maybe I just don't know what I am talking about but it seems easy to me...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Keyboard multimedia support

Postby Jean-Baptiste Kempf » 10 May 2008 02:49

Try development versions.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

chuan0309
New Cone
New Cone
Posts: 6
Joined: 03 Dec 2007 02:26

Re: Keyboard multimedia support

Postby chuan0309 » 16 May 2008 09:17

I have try to modify the code in VLC and remap the multimedia keys in Linux Ubuntu. Below is what I done:

* In Linux, create a file (~/.Xmodmap) to execute xmodmap expressions with following content:

Code: Select all

keycode 130 = XF86HomePage keycode 144 = XF86AudioPrev keycode 152 = XF86Launch4 keycode 153 = XF86AudioNext keycode 160 = XF86AudioMute keycode 162 = XF86AudioPause keycode 164 = XF86AudioStop keycode 174 = XF86AudioLowerVolume keycode 176 = XF86AudioRaiseVolume keycode 177 = keycode 180 = XF86Launch3
* In VLC source code, add following codes in ../include/vlc_keys.h:

Code: Select all

#define KEY_MEDIA_FASTER 0x002d0000 #define KEY_MEDIA_SLOWER 0x002e0000 … … { "Media Prev Track", KEY_MEDIA_PREV_TRACK }, { "Media Stop", KEY_MEDIA_STOP }, { "Media Play Pause", KEY_MEDIA_PLAY_PAUSE } { "Media Play Pause", KEY_MEDIA_PLAY_PAUSE }, { "Media Faster", KEY_MEDIA_FASTER }, { "Media Slower", KEY_MEDIA_SLOWER }
* Beside, add following codes in modules/gui/skins2/x11/x11_loop.cpp as well:

Code: Select all

#include <X11/XF86keysym.h> ... ... keysymToVlcKey[XF86XK_AudioMute] = KEY_VOLUME_MUTE; keysymToVlcKey[XF86XK_AudioLowerVolume] = KEY_VOLUME_DOWN; keysymToVlcKey[XF86XK_AudioRaiseVolume] = KEY_VOLUME_UP; keysymToVlcKey[XF86XK_AudioNext] = KEY_MEDIA_NEXT_TRACK; keysymToVlcKey[XF86XK_AudioPrev] = KEY_MEDIA_PREV_TRACK; keysymToVlcKey[XF86XK_AudioStop] = KEY_MEDIA_STOP; keysymToVlcKey[XF86XK_AudioPause] = KEY_MEDIA_PLAY_PAUSE; keysymToVlcKey[XF86XK_Launch3] = KEY_MEDIA_FASTER; keysymToVlcKey[XF86XK_Launch4] = KEY_MEDIA_SLOWER;

As a result, with vlc command in terminal,
vlc --key-play-pause 'Media Play Pause' --key-stop 'Media Stop' --key-vol-up 'Volume Up' --key-vol-down 'Volume Down' --key-vol-mute 'Volume Mute' --key-slower 'Media Prev Track' --key-faster 'Media Next Track' ../movie.mpg

The play/pause, mute, volume up, volume down, next track and previous track can work. However, stop, fast forward and back rewind cannot work.

Any idea ?

AmishSlayer
New Cone
New Cone
Posts: 1
Joined: 17 Jul 2008 07:06

Re: Keyboard multimedia support

Postby AmishSlayer » 17 Jul 2008 07:09

Ok, I got the keyboard media buttons to work. However, the reason I use these is to control my music/videos while I'm playing a game. The keyboard media buttons don't work unless I have VLC focused.

Is there a way to get these media buttons to work while VLC is in the background?

Thanks.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Keyboard multimedia support

Postby VLC_help » 17 Jul 2008 16:47

Currently it seems that VLC doesn't support Global hotkeys, hopefully someone will fix this in future.

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Re: Keyboard multimedia support

Postby CloudStalker » 20 Jul 2008 15:29

Currently it seems that VLC doesn't support Global hotkeys, hopefully someone will fix this in future.
Well technically VLC doesn't officially support Global Hotkeys, yet, but someone is working on it, really, has already worked on it.
ssbssa's plug-in

gitaarik
New Cone
New Cone
Posts: 2
Joined: 23 Jul 2008 20:58

Re: Keyboard multimedia support

Postby gitaarik » 23 Jul 2008 21:15

but i ques global hotkeys for mac os x is still not possible?

nilbus
New Cone
New Cone
Posts: 1
Joined: 09 Sep 2008 19:25

Re: Keyboard multimedia support

Postby nilbus » 09 Sep 2008 19:27

I did what jacksnodgrass and got the same results. I'm on a Dell XPS M1330 laptop using Ubuntu Linux with multimedia keys that work in other gnome apps like Totem and Rhythmbox.

n3twork
New Cone
New Cone
Posts: 6
Joined: 30 Dec 2006 07:42

Re: Keyboard multimedia support

Postby n3twork » 23 Dec 2008 22:22

I have on a win xp box vlc 0.9.x and I figured it didn't work but if you go in hotkey settings (I'm using advanced view) and you double click in the shortcut column another window comes up and it does properly capture the global multimedia keys as opposed to the set button which doesn't. This new window must be how they worked around the main window not grabbing it hope this helps people.


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 21 guests