Jetway remote on XBMC in Windows
#1
hey Guys,

Wondering if someone could help me out with my issue. I have a Jetway HTPC that came with this remote:

http://wiki.xbmc.org/index.php?title=Rem...MCE_remote

All the buttons seem to work fine in XBMC and WMP, except for the unified pause/play button. When the video is playing and I hit the button pause/play, it just stutters. The same thing happens if its already paused. My guess is that XBMC thinks that I'm trying to hit play again when I hit the pause/play button. How do I get it to treat it differently?

Here is the logs from XBMC:

09:18:41 T:2428 M:3305779200 DEBUG: WinEventsWin32.cpp: APPCOMMAND 14
09:18:41 T:2428 M:3305779200 DEBUG: CAnnouncementManager - Announcement: PlaybackPaused from xbmc
09:18:41 T:2428 M:3305779200 DEBUG: CGUIAudioManager::Initialize
09:18:41 T:2428 M:3305779200 DEBUG: CAudioContext::SetActiveDevice - SetActiveDevice from 0 to 2
09:18:41 T:2428 M:3305779200 DEBUG: CAudioContext::RemoveActiveDevice - Removing device 0
09:18:41 T:2428 M:3305775104 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Primary Sound Driver
09:18:41 T:2428 M:3305775104 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: DENON-AVAMP (High Definition Audio Device)
09:18:41 T:2428 M:3305775104 DEBUG: CWDSound::direct_sound_enumerator_member_callback - found Device: Speakers (USB PnP Sound Device )
09:18:41 T:2428 M:3305775104 DEBUG: CAudioContext::SetActiveDevice - selecting DENON-AVAMP (High Definition Audio Device) as output devices
09:18:41 T:2428 M:3305775104 DEBUG: SDLKeyboard: scancode: 0, sym: 0, unicode: 0, modifier: 0
09:18:41 T:2428 M:3305775104 DEBUG: SDLKeyboard: scancode: 57, sym: 32, unicode: 32, modifier: 0
09:18:41 T:2428 M:3305775104 DEBUG: CApplication::OnKey: 61472 pressed, action is Pause
09:18:41 T:2428 M:3305775104 DEBUG: CAnnouncementManager - Announcement: PlaybackResumed from xbmc
09:18:41 T:2428 M:3305775104 DEBUG: CGUIAudioManager:Big GrineInitialize
09:18:41 T:2860 M:3305775104 DEBUG: CDVDPlayerAudio:: Discontinuity - was:5846988.609437, should be:5851028.797967, error:4040.188530
09:18:44 T:2428 M:3300339712 DEBUG: WinEventsWin32.cpp: APPCOMMAND 14
09:18:44 T:2428 M:3300335616 DEBUG: CAnnouncementManager - Announcement: PlaybackPaused from xbmc
09:18:44 T:2428 M:3300335616 DEBUG: CGUIAudioManager::Initialize
09:18:44 T:2428 M:3300331520 DEBUG: SDLKeyboard: scancode: 0, sym: 0, unicode: 0, modifier: 0
09:18:44 T:2428 M:3300331520 DEBUG: SDLKeyboard: scancode: 57, sym: 32, unicode: 32, modifier: 0
09:18:44 T:2428 M:3300331520 DEBUG: CApplication::OnKey: 61472 pressed, action is Pause
09:18:44 T:2428 M:3300331520 DEBUG: CAnnouncementManager - Announcement: PlaybackResumed from xbmc
09:18:44 T:2428 M:3300331520 DEBUG: CGUIAudioManager:Big GrineInitialize
09:18:44 T:2860 M:3300331520 DEBUG: CDVDPlayerAudio:: Discontinuity - was:8854010.296293, should be:8862072.739158, error:8062.442865
09:18:46 T:2428 M:3295895552 DEBUG: WinEventsWin32.cpp: APPCOMMAND 14
09:18:46 T:2428 M:3295895552 DEBUG: CAnnouncementManager - Announcement: PlaybackPaused from xbmc
09:18:46 T:2428 M:3295895552 DEBUG: CGUIAudioManager::Initialize
09:18:46 T:2428 M:3295895552 DEBUG: SDLKeyboard: scancode: 0, sym: 0, unicode: 0, modifier: 0
09:18:46 T:2428 M:3295895552 DEBUG: SDLKeyboard: scancode: 57, sym: 32, unicode: 32, modifier: 0
09:18:46 T:2428 M:3295895552 DEBUG: CApplication::OnKey: 61472 pressed, action is Pause
09:18:46 T:2428 M:3295895552 DEBUG: CAnnouncementManager - Announcement: PlaybackResumed from xbmc
09:18:46 T:2428 M:3295895552 DEBUG: CGUIAudioManager:Big GrineInitialize
09:18:46 T:2860 M:3295895552 DEBUG: CDVDPlayerAudio:: Discontinuity - was:10774892.499307, should be:10781925.763735, error:7033.264427
09:18:48 T:2428 M:3294519296 INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://feeds.feedburner.com (easy=028BC198, multi=028DBD38)
09:18:48 T:2428 M:3295911936 INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://xoap.weather.com (easy=028AB3F8, multi=028DBC80)
09:18:50 T:2428 M:3291041792 DEBUG: CWinEventsWin32::WndProcWindow is active
09:18:50 T:2428 M:3291041792 DEBUG: CWinEventsWin32::WndProcWindow lost focus


In the example above, I played the video using my keyboard and then pressed the pause/play button 3 times.


I actually just want to get this all working with a Logitech universal remote I have, so I don't really have to get that remote working per se. The logitech does have a separate pause and a separate play button, so even if there was a way I could map those buttons to pause and play on XBMC, that would also help.

Thanks so much. I've been driving myself crazy trying to figure this out.
Reply
#2
If you look at your log you'll see three instances of:

Code:
DEBUG: WinEventsWin32.cpp: APPCOMMAND 14
DEBUG: CAnnouncementManager - Announcement: PlaybackPaused from xbmc
some stuff
DEBUG: CApplication::OnKey: 61472 pressed, action is Pause
DEBUG: CAnnouncementManager - Announcement: PlaybackResumed from xbmc

The problem is that your remote is sending two keypresses when you press the Play/Pause key. First it sends an APPCOMMAND 14, which is APPCOMMAND_MEDIA_PLAY_PAUSE. This causes the playback to pause. Then it immediately sends a "spacebar" keypress (shown as OnKey: 61472 in the log) and because <space> is mapped to Pause by default it immediately unpauses and playback resumes. That's why you see the flicker.

There is a relatively easy fix. Open Explorer and navigate to C:\Program Files\XBMC\system\keymaps (if you use 64 bit Windows it's C:\Program Files (x86)) and you'll see a file called keyboard.xml. Open this file in your favourite text editor and search for the line:

<space>Pause</space>

I think this occurs twice in the file. Delete both lines. That stops the spacebar mapping to the Pause action so the play/pause your remote will behave sensibly. You might want to back up the keyboard.xml before you start hacking, as if you corrupt it you will stop the keyboard working at all in XBMC.

Incidentally, depending on the model, your Harmony may have emulation for the Chinavision remote built in, and this avoids having to learn all the IR codes from the original handset.

JR
Reply
#3
Thanks jhrennie. I will try that. by removing the instances of <space>Pause</space> from the keymaps file, does that mean I won't be able to use spacebar on a keyboard?
Reply
#4
You can use an alternate driver with this remote, one that stops it automatically sending key presses and lets you bind the keys to do whatever you want. The driver comes with eventghost I think. I did briefly considering writing one for winlirc too, but it's such a cheap nasty remote I haven't bothered.
WinLIRC, the Windows port of LIRC (Linux Infrared Remote Control):
http://winlirc.sourceforge.net
Active development of the WinLIRC package:
http://sourceforge.net/projects/winlirc/
LIRC config files for supported remote controls:
http://lirc.sourceforge.net/remotes/
Reply
#5
Maveryx Wrote:Thanks jhrennie. I will try that. by removing the instances of <space>Pause</space> from the keymaps file, does that mean I won't be able to use spacebar on a keyboard?

It means the spacebar won't pause, but you can pause by pressing P or ctrl-P so that's no great loss.

Having said that, I agree with dukey that the Chinavision is a remarkably cheap and nasty remote. You'd be far better off getting a eHome remote like the Microsoft remote or an HP. HP remotes seem widely available on ebay. If you let me know which ebay site you use (i.e. which country) I can suggest a few links.

JR
Reply

Logout Mark Read Team Forum Stats Members Help
Jetway remote on XBMC in Windows0