Help - Search - Members - Calendar
Full Version: Send To Xbmc From Ie Context Menu
Scenyx Entertainment Community > Xbox1 Forums > Software Forums > XBMC for Xbox Forums > XBMC for Xbox
IceAge
I noticed the widget for OSX and the addin for Firefox, but for those of us that use IE as their main internet browser, I hadn't seen much to automate this process. So here's the quick and dirty way to add a "Send To XBMC" option to the context menu in IE. This requires editing the Windows registry. If you have to ask how this is done, then you probably shouldn't be doing it.

Step One:
First, we need to create the script that IE will run when our option is clicked on the context menu. This script is nothing more then an html page. Here's the code I used:
CODE

<script LANGUAGE="JavaScript">
//Sends a media URL to XBMC for playback
//Replace the xboxip value with the IP address of your xbox running XBMC

var parentwin = external.menuArguments; var doc = parentwin.document;
var xboxip = "192.168.1.127";
var element = doc.activeElement;

newwin = new ActiveXObject("MS.XMLHTTP");

newwin.open("GET", "http://" + xboxip + "/xbmcCmds/xbmcHttp?command=playfile&parameter=" + element.href, 0);
newwin.send();
</SCRIPT>


Save the document to a location that you'll remember like, C:\xbmc.htm.

Step Two:
Now we need to add our entries to the Windows registry so it'll show up in IE so fire up regedit. Make sure the following key exists in your Windows registry. If it doesn't, create it.
CODE

HKEY_CURRENT_USER\Software\MS\Internet Explorer\MenuExt


Step Three:
Make a new subkey and name it whatever you want the text of the context menu entry to be. Mine, for example, is Send To XBMC.

Step Four:
Change the value of the (Default) entry in the right hand pane of the key you just created, to point to the location of the file you created in step one. For example...
CODE

c:\xbmc.htm


Step Five:
Create a new binary value under the default entry and name it Contexts. Change the value to 20, which will make it only show up when a link is right clicked.

Close regedit and fire up IE to test it out. When you find a link to a video, right click it and you should have a menu entry like Send To XBMC. Click it and once it buffers, the video should start playing on your xbox. If anyone get's any use out of this or makes it better, I'd like to hear about it!
mike315
this is fiyah just like the bookmarklet one
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.