2010-09-14, 19:26
yeah yeah I know there are about 20 different button mapping threads going on, but with Dharma's new Addons I haven't found a solid source of info and have spend countless hours researching to find my answer.
so you want to map a button to open YouTube, GrooveShark, Apple Movie Trailers. etc etc you came to the right place
there might be a better way, but I find this just plain works.
for any remote button help please see the following links.
Global Keyboard
Activate Window settings
List of Built In Functions
step by step to LIRC and configure your remote
Hide / show Watched for Movies and Tv Shows
-=Jason=-
so you want to map a button to open YouTube, GrooveShark, Apple Movie Trailers. etc etc you came to the right place
there might be a better way, but I find this just plain works.
- first off add what you want to me mapped to your Favorites , using your context menu.
now we are going to use command line to finish off the rest this guide assumes you are using Linux or Live. if you are on a Windoz box I can't help you but you might find some useful info in here
- Code:
cat ~/.xbmc/userdata/favourites.xml
you will see all your favorites looking line this
Code:<favourite name="You Tube Beta" thumb="/home/xbmc/.xbmc/addons/plugin.video.youtube.beta/icon.png">ActivateWindow(10024,plugin://plugin.video.youtube.beta/)</favourite>
- what we are insterted in is the part between <favorite name =XXXXX> and </favorite> which happens to be ActivateWindow(10024,plugin://plugin.video.youtube.beta/)
copy that part of the code you will be pasting it in a minute.
from this link here in the wiki it says to use ActivateWindow like so ActivateWindow(Settings)
in my .xbmc/userdata/keymaps/remote.xml file for my blue , red, green, yellow buttons my activate window looks like this
XBMC.ActivateWindow(VideoLibrary,MovieTitles)
and that works just fine, I am not sure if the XBMC. is required or not, its not in the wiki as such, but in my remote.xml file its there and working so I used it.
ok back on topic.
open your remote.xml file.
- Code:
sudo nano ~/.xbmc/userdata/keymaps/remote.xml
find the button you want to use (blue,red,green,yellow) etc and paste in the contents you copied from. save the file and exit
should look like
<blue>XBMC.ActivateWindow(10024,plugin://plugin.video.youtube.beta/)</blue>
restart xbmc
- Code:
killall xinit
for any remote button help please see the following links.
Global Keyboard
Activate Window settings
List of Built In Functions
step by step to LIRC and configure your remote
Hide / show Watched for Movies and Tv Shows
-=Jason=-