2006-01-19, 12:46
longer background on my intent below, short story is that i'd like to get dvd menu navigation by button number working in xbmc so that i can press number+enter on my remote to navigate dvd menus.
the current behavior seems to be full-screen video default of jumping to a specific time in the video when number are pressed (although i'm not sure that currently works right on dvds, didn't play around much with any "normal" dvds to find out).
i seem to have the basics working, but as a disclaimer i haven't worked on xbmc code before and i'm not a c++ developer. i don't know if there are global implications to these changes, a better way to integrate them, etc. i also haven't looked into the xbmc configuration systems on how to make the option configurable.
i would appreciate advice from any xbmc devs on whether this feature is viable for xbmc (was it specifically left out for a reason?), the best approach for integrating it, etc.
in dvdplayer.cpp, i motified "cdvdplayer::onaction". inside the following conditional switch block:
i added:
this overrides the default behavior, but provides no way to access the original behavior. i'm not sure if that's a problem within a dvd menu or not. since cdvdinputstreamnavigator, libnavdvd, etc already implement the selectbutton logic, the change was very simple.
any feedback on making this feature standard in xbmc?
thanks,
jeff
background:
i'm trying to use the fisher price "read with me dvd" product with my xbox. the device is a kid-friendly programmable "remote" that learns codes from a dvd remote then maps them to graphical buttons designed to work with special dvds.
amazon.com "read with me dvd" product page
the device works by learning dvd remote keys 0-9, enter, fwd, back, etc. the special keys on the device are mapped to number+enter and interact with dvd menus on the special dvds. to my surprise the device does not work correctly with the ms dvd dongle. apparently the dongle doesn't support menu navigation by button number (i'm using the mce dongle+remote haven't tried the dvd-only remote).
since my xbox is my only dvd player and xbmc is open-source i decided i would try to make the product work with xbmc. it will make my kid happy and gave me a great excuse to dabble in xbmc coding too
the current behavior seems to be full-screen video default of jumping to a specific time in the video when number are pressed (although i'm not sure that currently works right on dvds, didn't play around much with any "normal" dvds to find out).
i seem to have the basics working, but as a disclaimer i haven't worked on xbmc code before and i'm not a c++ developer. i don't know if there are global implications to these changes, a better way to integrate them, etc. i also haven't looked into the xbmc configuration systems on how to make the option configurable.
i would appreciate advice from any xbmc devs on whether this feature is viable for xbmc (was it specifically left out for a reason?), the best approach for integrating it, etc.
in dvdplayer.cpp, i motified "cdvdplayer::onaction". inside the following conditional switch block:
Quote: if (pstream->isinmenu())
{
switch (action.wid)
i added:
Quote: case remote_0:
case remote_1:
case remote_2:
case remote_3:
case remote_4:
case remote_5:
case remote_6:
case remote_7:
case remote_8:
case remote_9:
{
// offset from key codes back to button number
int button = action.wid - remote_0;
clog::Debug Log(" %d button press", button);
pstream->selectbutton(button);
}
break;
this overrides the default behavior, but provides no way to access the original behavior. i'm not sure if that's a problem within a dvd menu or not. since cdvdinputstreamnavigator, libnavdvd, etc already implement the selectbutton logic, the change was very simple.
any feedback on making this feature standard in xbmc?
thanks,
jeff
background:
i'm trying to use the fisher price "read with me dvd" product with my xbox. the device is a kid-friendly programmable "remote" that learns codes from a dvd remote then maps them to graphical buttons designed to work with special dvds.
amazon.com "read with me dvd" product page
the device works by learning dvd remote keys 0-9, enter, fwd, back, etc. the special keys on the device are mapped to number+enter and interact with dvd menus on the special dvds. to my surprise the device does not work correctly with the ms dvd dongle. apparently the dongle doesn't support menu navigation by button number (i'm using the mce dongle+remote haven't tried the dvd-only remote).
since my xbox is my only dvd player and xbmc is open-source i decided i would try to make the product work with xbmc. it will make my kid happy and gave me a great excuse to dabble in xbmc coding too