xboxscene.org forums

Pages: [1] 2 3 ... 12

Author Topic: Xbmc Fox - Firefox Extension  (Read 1088 times)

LiquidIce629

  • Archived User
  • Newbie
  • *
  • Posts: 20
Xbmc Fox - Firefox Extension
« on: April 14, 2006, 08:59:00 PM »

XBMC Fox beta1
by LiquidIce

This adds a new option to the right click menu in Firefox which will send URLS to XBMC (Xbox Media Center) for onscreen playback.

It also allows you to paste the URL of any video or audio file on the web into a textfield and have it play on your TV.

Install this extension like you would any other. usually just dragging the XPI file into the browser works well.

Once installed, restart Firefox, then goto Tools -> Extensions and select XBMC Fox

Press the Options Button at the bottom of the window

In the options box type in the ip address of your xbox.

Make sure that the webserver is enabled on your XBMC by going to:
Settings --> Network -> Servers -> Web Server

Go to a website that links directly to media files. Such as this one:
http://hl.udogs.net/files....20Video

Right click on a link and goto 'Play in XBMC'.

You can also go to Tools - Paste URL to XBMC and paste in the URL to any audio/video file.

(IMG:http://static.flickr.com/54/128658727_45a8c482ba_o.jpg)

I would like to hear some comments on ways to make little javascripts which could scrape links from the various video sites and display clickable links to play the content on the tv. Perhaps a greasemonkey script would also be useful to add 'send to xbox' links to all of the major video sites.

--

I am awaiting approval to mozdev, which will provide an easier installation. Until then you can download the XPI file from sourceforge here: http://sourceforge.net/tracker....1470650

Save it to disk then drag the .XPI file into your firefox window to install.
Logged

slumberpod77

  • Archived User
  • Hero Member
  • *
  • Posts: 523
Xbmc Fox - Firefox Extension
« Reply #1 on: April 14, 2006, 09:04:00 PM »

i cannot currently test it, but i congratulate you on making something which is both cool and useful smile.gif i will try it out ASAP
Logged

Jezz_X

  • Archived User
  • Hero Member
  • *
  • Posts: 2893
Xbmc Fox - Firefox Extension
« Reply #2 on: April 14, 2006, 10:17:00 PM »

Wow that does sound cool
Logged

xboxbox451

  • Archived User
  • Hero Member
  • *
  • Posts: 808
Xbmc Fox - Firefox Extension
« Reply #3 on: April 14, 2006, 10:21:00 PM »

Tried it out. Works Great!

Excellent job  beerchug.gif .
Logged

Noodlez

  • Archived User
  • Newbie
  • *
  • Posts: 40
Xbmc Fox - Firefox Extension
« Reply #4 on: April 15, 2006, 01:22:00 AM »

Now that is pretty neat,
Not 100% sure what i would need it for but none the less it's a very neato idea. I likes it.
Logged

eriktar

  • Archived User
  • Newbie
  • *
  • Posts: 8
Xbmc Fox - Firefox Extension
« Reply #5 on: April 15, 2006, 02:48:00 AM »

@ LiquidIce629

Excelent.  Even better than what I sugested in the ajax interface thread.  Thanks a bunch!
Logged

bios

  • Archived User
  • Newbie
  • *
  • Posts: 38
Xbmc Fox - Firefox Extension
« Reply #6 on: April 15, 2006, 08:05:00 AM »

No Shit

This is very nice a love Firefox i love extentions and i do love XBMC

I'll try this at once

Nice work indeed

This post has been edited by bios: Apr 15 2006, 03:06 PM
Logged

LiquidIce629

  • Archived User
  • Newbie
  • *
  • Posts: 20
Xbmc Fox - Firefox Extension
« Reply #7 on: April 15, 2006, 08:32:00 AM »

All we're doing here is calling a command from the HTTP API called PlayFile

/xbmcCmds/xbmcHttp?command=playfile&parameter=http://media.com/file.mpg

Does anyone know if other media players have a similar feature? MythTV? A modded Tivo? Roku? Can a MCE PC be rigged to do the same?  Maybe I can easily add support for other players to make this extension more useful.

Also, Donno on IRC had a good idea. I should make a Firefox sidebar that will scrape the currently viewed site for any media urls and display them as links which would play the media on the xbox. If there is anyone out there with some Regular Expression Skills that wants to give me a hand with that, shoot me an email:
liquidice629 at gmail
Logged

incognegro

  • Archived User
  • Hero Member
  • *
  • Posts: 1764
Xbmc Fox - Firefox Extension
« Reply #8 on: April 15, 2006, 08:10:00 AM »

QUOTE(eriktar @ Apr 15 2006, 09:19 AM) View Post

@ LiquidIce629

Excelent.  Even better than what I sugested in the ajax interface thread.  Thanks a bunch!



Yea I mentioned it in the ajax thread too. There use to be a script/program called url paster that did the same thing but it stoppe working after awhile.

Anyways i tested and all it does is bring up the "caching" dialogs on xbmc and then does nothing. am I doing something wrong?

Here's my log :

QUOTE

09:45:28 M: 53854208  NOTICE: -----------------------------------------------------------------------
09:45:28 M: 53854208  NOTICE: Starting XBoxMediaCenter.  Built on Apr 13 2006
09:45:28 M: 53854208  NOTICE: Q is mapped to: Harddisk0\Partition1\apps\XBMC
09:45:28 M: 53854208  NOTICE: Log File is located: Q:\xbmc.log
09:45:28 M: 53854208  NOTICE: -----------------------------------------------------------------------
09:45:28 M: 53854208  NOTICE: Setup DirectX
09:45:28 M: 53854208    INFO: Available videomodes:
09:45:28 M: 53854208    INFO: Found mode: 720x480 at 60Hz,
09:45:28 M: 53829632    INFO: Mouse inserted on port 3
09:45:28 M: 53829632  NOTICE: load settings...
09:45:28 M: 53829632  NOTICE: loading T:\settings.xml
09:45:28 M: 53710848  NOTICE: Getting hardware information now...
09:45:28 M: 53710848    INFO: Using digital output
09:45:28 M: 53710848    INFO: AC3 pass through is enabled
09:45:28 M: 53710848    INFO: DTS pass through is enabled
09:45:28 M: 53710848  NOTICE: Checking resolution 10
09:45:28 M: 53710848    INFO: AV Pack: S-Video
09:45:28 M: 53710848    INFO: AV Flags:
09:45:28 M: 53710848  NOTICE: Setting autoresolution mode 4
09:45:28 M: 53837824  NOTICE: loading Q:\XboxMediaCenter.xml
09:45:31 M: 50196480  NOTICE: loaded Q:\system\players\mplayer\ISO639-1.xml
09:45:31 M: 50155520  NOTICE: loaded Q:\system\players\mplayer\ISO639-2.xml
09:45:31 M: 50049024   ERROR: Window Translator: Can't find window mymusictop100
09:45:31 M: 50044928   ERROR: Window Translator: Can't find window webbrowser
09:45:31 M: 50024448   ERROR: Window Translator: Can't find window webbrowserosd
09:45:31 M: 50024448   ERROR: Window Translator: Can't find window webbookmarks
09:45:31 M: 50024448   ERROR: Window Translator: Can't find window webhistory
09:45:31 M: 50040832  NOTICE: initialize assignment:[dhcp] network ip:[192.168.0.188] netmask:[255.255.255.0] gateway:[192.168.0.1] nameserver:[192.168.0.1]
09:45:31 M: 50040832  NOTICE: use DHCP
09:45:33 M: 49725440  NOTICE: start timeserver thread
09:45:33 M: 49201152  NOTICE: start webserver
09:45:33 M: 48525312  NOTICE: XBFileZilla: Starting...
09:45:34 M: 46399488  NOTICE: XBFileZilla: Started
09:45:34 M: 46399488  NOTICE: Start LED Control
09:45:34 M: 46399488  NOTICE: Checking the Date!
09:45:34 M: 46399488  NOTICE: start dvd mediatype detection
09:45:34 M: 45875200  NOTICE: initializing playlistplayer
09:45:34 M: 45875200  NOTICE: start fancontroller
09:45:34 M: 45350912  NOTICE: load default skin:[Project Mayhem III]
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43958272 WARNING: CURL::CURL - Url has no protocol ?, empty CURL created
09:45:34 M: 43589632  NOTICE: initialize done
09:45:34 M: 43065344  NOTICE: AudioScrobbler: load cache
09:45:34 M: 43065344  NOTICE: Running the application...
09:45:34 M: 32169984  NOTICE: AudioScrobbler: Handshaking: Client up to date.
09:45:34 M: 32149504  NOTICE: AudioScrobbler: Handshake successful.
10:04:39 M: 25042944 WARNING: CURL::CURL - Url has no protocol config, empty CURL created
10:05:31 M:  1323008 WARNING: Unable to resolve: advapi32.dll AllocateAndInitializeSid
10:05:31 M:  1323008 WARNING: Unable to resolve: advapi32.dll AllocateAndInitializeSid
10:05:31 M:   380928   ERROR: Unable to open dll Q:\system\players\mplayer\codecs\QuickTimeEssentials.qtx
10:05:31 M:   380928   ERROR: Unable to open dll Q:\system\players\mplayer\codecs\QuickTimeEssentials.qtx
10:05:31 M:   380928   ERROR: LoadLibrary('QuickTimeEssentials.qtx') failed
10:05:31 M:   380928   ERROR: Unable to open dll Q:\system\players\mplayer\codecs\QuickTimeInternetExtras.qtx
10:05:31 M:   380928   ERROR: Unable to open dll Q:\system\players\mplayer\codecs\QuickTimeInternetExtras.qtx
10:05:31 M:   380928   ERROR: LoadLibrary('QuickTimeInternetExtras.qtx') failed
10:05:31 M:   323584 WARNING: Unable to resolve: advapi32.dll AllocateAndInitializeSid
10:05:31 M:   245760 WARNING: Unable to resolve: advapi32.dll AllocateAndInitializeSid
10:05:31 M:   163840   ERROR: Could not create RGB lookup textures
10:05:31 M:    32768  SEVERE: DLL: Q:\system\players\mplayer\mplayer.dll : malloc failed, crash imminent
10:05:31 M:    12288   ERROR: cmplayer::openfile() http://hl.udogs.net/...s/Gaming/Bungie Related Movies/MWSF 2000/Freewill Halo Video/AlexIntrosJoe_MWSF00.mov failed
10:06:05 M: 25022464 WARNING: CURL::CURL - Url has no protocol config, empty CURL created
10:07:14 M:  2301952 WARNING: Unable to resolve: advapi32.dll AllocateAndInitializeSid
10:07:14 M:  2301952 WARNING: Unable to resolve: advapi32.dll AllocateAndInitializeSid
10:07:14 M:   802816   ERROR: Unable to open dll Q:\system\players\mplayer\codecs\QuickTimeInternetExtras.qtx
10:07:14 M:   802816   ERROR: Unable to open dll Q:\system\players\mplayer\codecs\QuickTimeInternetExtras.qtx
10:07:14 M:   802816   ERROR: LoadLibrary('QuickTimeInternetExtras.qtx') failed
10:07:14 M:   761856 WARNING: Unable to resolve: advapi32.dll AllocateAndInitializeSid
10:07:14 M:   684032 WARNING: Unable to resolve: advapi32.dll AllocateAndInitializeSid
10:07:14 M:    86016   ERROR: cmplayer::openfile() http://hl.udogs.net/...s/Gaming/Bungie Related Movies/MWSF 2000/Freewill Halo Video/LiveHaloPreview_MWSF00.mov failed
10:09:36 M: 32026624   ERROR: Window Translator: Can't find window webbrowser
10:09:36 M: 32026624   ERROR: Activate/ReplaceWindow called with invalid destination window: webbrowser
10:09:48 M: 34119680  NOTICE: Storing total System Uptime
10:09:48 M: 34119680  NOTICE: Saving settings
10:09:48 M: 34119680  NOTICE: stop all
10:09:48 M: 34119680  NOTICE: stop webserver
10:09:48 M: 34701312  NOTICE: stop time server
10:09:48 M: 36274176  NOTICE: stop dvd detect media
10:09:48 M: 36798464  NOTICE: stop fancontroller
10:09:49 M: 37322752  NOTICE: stop mplayer
10:09:49 M: 37322752  NOTICE: stop daap clients
10:09:49 M: 37322752  NOTICE: stop python
10:09:49 M: 37322752  NOTICE: clean cached files!
10:09:49 M: 37322752  NOTICE: unload skin
10:09:50 M: 47931392  NOTICE: unload sections
10:09:50 M: 48017408  NOTICE: destroy
10:09:50 M: 52232192  NOTICE: stopped
Logged

LiquidIce629

  • Archived User
  • Newbie
  • *
  • Posts: 20
Xbmc Fox - Firefox Extension
« Reply #9 on: April 15, 2006, 09:00:00 AM »

Maybe the site your trying to play from isn't connecting on the xbox?

Try to play one of the direct http links from here:

http://revision3.com/diggnation/2006-04-06/media
Logged

bios

  • Archived User
  • Newbie
  • *
  • Posts: 38
Xbmc Fox - Firefox Extension
« Reply #10 on: April 15, 2006, 08:58:00 AM »

Video works for me, audio streams don't (http://www.di.fm/mp3/breaks.pls for example)
It opens caches and then nothing but it could be me, i should do a fresh install smile.gif, direct mp3 links a stated above do.

Would it be easy to create a XMBC is now playing extention (like in ajax).

Can someone point me in the right direction i'm likeing this websevers stuff and i'm going to look into it
Logged

LiquidIce629

  • Archived User
  • Newbie
  • *
  • Posts: 20
Xbmc Fox - Firefox Extension
« Reply #11 on: April 15, 2006, 11:15:00 AM »

Yeah XBMC's Playfile command does not understand what to do with the .pls playlist file you sent it. It will only detect audio files such as mp3, ogg, wav, etc..  I have not found a good way around it, ideally the httpapi could be updated to automatically detect what kind of media it is and play it, right now it only wants to see an audio or video file, not a playlist or shoutcast url.

I have already created an AJAX webpage for XBMC, search this forum for ajax and you'll find it. You could probably strip out the GetCurrentlyPlaying functions from my code and make a seperate little page for that if you wanted a now playing sidebar.
Logged

iLLNESS

  • Archived User
  • Sr. Member
  • *
  • Posts: 361
Xbmc Fox - Firefox Extension
« Reply #12 on: April 15, 2006, 11:50:00 AM »

wow. this addon is handy as hell.
Logged

CattyKid

  • Archived User
  • Hero Member
  • *
  • Posts: 2077
Xbmc Fox - Firefox Extension
« Reply #13 on: April 15, 2006, 11:52:00 AM »

This is VERY cool.  You guys, again, deserve a nice pat on the back!
Logged

focusedsoul

  • Archived User
  • Newbie
  • *
  • Posts: 24
Xbmc Fox - Firefox Extension
« Reply #14 on: April 15, 2006, 11:23:00 AM »

Just tried it, perfection  biggrin.gif
Logged
Pages: [1] 2 3 ... 12