Page 1 of 1

Mapping MCE Remote Buttons

Posted: 17 May 2012 20:08
by luke823
Hi there,
I'm trying to use hotkeys to setup mce remote buttons.

This is working great for most of them. I'm able to map skip forward/back to next/previous chapter, stop to stop, etc.

There are a few buttons that VLC seems to not want to respond to. For instance, I want to map the ff/rew buttons on the remote to short jump forward/backwards. But when I try to do this in hotkey settings, VLC never responds to the remote button press and thus I'm not able to map it. There are a few other keys like this too, media info for example.

Is this intentional?

Re: Mapping MCE Remote Buttons

Posted: 21 May 2012 18:48
by Jean-Baptiste Kempf
No. probably a bug. Can you list the ones that works and the ones that do not?

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 03:40
by luke823
They all pretty much work but the ones that don't are important.

What does not work (meaning you cannot assign them as hot keys to VLC functions)

FF/Rew
Info
Menu - This pops open WMC, but when VLC is open it would be nice to reassign it.
Guide - Same as above. Opens WMC guide.
Channel Up/Down - VLC seems to reserve this to go back and forth between tracks in the playlist. (Which is fine with me I'm just noting this).

Note the difference between ff/rew and skip forward/back. The skip buttons do work.

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 18:38
by Jean-Baptiste Kempf
Can you give us a picture of your remote?

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 21:44
by luke823
http://www.newegg.com/Product/Product.a ... 6880101007

I know why it's not working. I'm a developer for MediaBrowser (trying to integrate VLC). I've been working on my own input monitoring for MB.

You are listening to keyboard input, which most commands on the remote will map to, so for the most part it works. Some of them however, are not keys, they are AppCommands (FF, Rew, Info, and some others).

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 22:08
by Jean-Baptiste Kempf
http://git.videolan.org/?p=vlc.git;a=bl ... b=HEAD#l33

Some are not handled in the switch :)
We do not really have a backward action, but we have a slower. Else, we could skip back 10seconds or so, but people would need to keep it pressed.

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 22:15
by luke823
What are your thoughts then? Can ff and rew be added?

Some of the others would nice too, particularly Info, but those are really the big two.

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 22:17
by Jean-Baptiste Kempf
http://pastie.org/3962762

What would info map to?

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 22:18
by Jean-Baptiste Kempf
If we want to have fast_forward and fast_rewind actions when buttons are pressed, then we should map those to skip 10sec back or fwd.
Else, we can map it to faster/slower, like I did.

For info, no clue what it should do.

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 22:23
by luke823
Exactly.

I don't care so much what the default functionality is, as long as they can be assigned as hotkeys, both in the settings UI and on the command line.

What I'm hoping to achieve for MB users is to set it all up for them on the command line, which I am already doing as best i can. What I would like to have is:

FF/Rew - Skip forward back 10 seconds like you suggest
Skip Forward/Back - Next/prev chapters
Channel Up/Down - Next/prev file in playlist.

This is also why I asked a couple weeks ago if View -> Fullscreen Interface is available on the command line. That's actually the only setting users have to configure manually. Still a lot better than the other players though.

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 22:26
by Jean-Baptiste Kempf
they cannot be assigned. Or else, I do not understand what you mean.

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 22:29
by luke823
Well I can go into hotkeys and re-assign skip forward/back on the remote to anything I want.

And I am doing that on the command line to re-assign the buttons to next/previous chapter. And it works. So why wouldn't that be possible for the ff/rew buttons?

Well even if you don't make them re-assignable, having them jump forward and back 10 seconds is better than the button not doing anything at all.

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 22:35
by Jean-Baptiste Kempf
Well, you can reassign the normal VLC hotkeys, not the remote ones.

Re: Mapping MCE Remote Buttons

Posted: 24 May 2012 22:44
by luke823
Actually most of them I can re-assign, and I am currently doing so for the ones I mentioned.

Well as for ff/rew as long as the buttons do something I think that's fine.

Re: Mapping MCE Remote Buttons

Posted: 25 May 2012 01:12
by Jean-Baptiste Kempf
Which one is the info ? APPCOMMAND_HELP ?

Re: Mapping MCE Remote Buttons

Posted: 25 May 2012 04:37
by luke823
I haven't implemented AppCommands yet in my own code, so I can't say for sure. But I don't see Info on this list:

http://msdn.microsoft.com/en-us/library ... s.85).aspx

It is possible that it could be Help. I'll follow up when know for sure. This shouldn't hold up ff & rew getting fixed though, right?

Re: Mapping MCE Remote Buttons

Posted: 25 May 2012 19:52
by Jean-Baptiste Kempf
DONE.

Re: Mapping MCE Remote Buttons

Posted: 25 May 2012 23:07
by luke823
Thanks!

Re: Mapping MCE Remote Buttons

Posted: 23 May 2015 23:35
by gene_wood
I've encountered the same issue that @luke823 reported regarding being able to map the fast forward and rewind buttons to actions in VLC. I can't tell from this thread what the resolution was. Is there a way to use those buttons on a remote with VLC? Currently they map to the function of increase playback speed and decrease playback speed. I'd like to map them to what @luke823 wanted to map them to which is the skip ahead 10 seconds and skip back 10 seconds.

Re: Mapping MCE Remote Buttons

Posted: 16 Jul 2015 20:26
by Jean-Baptiste Kempf
I'm not sure it was fixed, tbh.