Jump to content


Photo

Xbmc Fox - Firefox Extension


  • Please log in to reply
177 replies to this topic

#1 LiquidIce629

LiquidIce629

    X-S Young Member

  • Members
  • Pip
  • 30 posts

Posted 15 April 2006 - 03:23 AM

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.

IPB Image

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.n...cker....1470650

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

#2 slumberpod77

slumberpod77

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,478 posts
  • Location:Portland, Oregon
  • Interests:music, music, music, computers, audio engineering, gaming, code monkeying, music again
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 15 April 2006 - 04:04 AM

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

#3 Jezz_X

Jezz_X

    X-S Knowledgebase

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 4,531 posts
  • Location:Australia
  • Xbox Version:v1.1
  • 360 version:none

Posted 15 April 2006 - 04:41 AM

Wow that does sound cool

#4 xboxbox451

xboxbox451

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,015 posts
  • Xbox Version:v1.6
  • 360 version:none

Posted 15 April 2006 - 05:21 AM

Tried it out. Works Great!

Excellent job beerchug.gif .

#5 Noodlez

Noodlez

    X-S Senior Member

  • Members
  • PipPip
  • 154 posts
  • Location:Tulsa, OK
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 15 April 2006 - 07:46 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.

#6 eriktar

eriktar

    X-S Enthusiast

  • Members
  • 11 posts

Posted 15 April 2006 - 09:12 AM

@ LiquidIce629

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

#7 bios

bios

    X-S Member

  • Members
  • Pip
  • 101 posts

Posted 15 April 2006 - 02:29 PM

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

Edited by bios, 15 April 2006 - 02:30 PM.


#8 LiquidIce629

LiquidIce629

    X-S Young Member

  • Members
  • Pip
  • 30 posts

Posted 15 April 2006 - 02:56 PM

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


#9 incognegro

incognegro

    X-S Hacker

  • XS-BANNED
  • PipPipPipPipPipPip
  • 2,519 posts
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 15 April 2006 - 03:10 PM

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

Edited by incognegro, 15 April 2006 - 03:24 PM.


#10 LiquidIce629

LiquidIce629

    X-S Young Member

  • Members
  • Pip
  • 30 posts

Posted 15 April 2006 - 03:24 PM

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...006-04-06/media

#11 bios

bios

    X-S Member

  • Members
  • Pip
  • 101 posts

Posted 15 April 2006 - 03:58 PM

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

Edited by bios, 15 April 2006 - 04:07 PM.


#12 LiquidIce629

LiquidIce629

    X-S Young Member

  • Members
  • Pip
  • 30 posts

Posted 15 April 2006 - 05:39 PM

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.

#13 iLLNESS

iLLNESS

    X-S Genius

  • XS-BANNED
  • PipPipPipPip
  • 766 posts
  • Location:Ontario, Canada
  • Interests:computers, video games, my gf, movies, drinking
  • Xbox Version:v1.3
  • 360 version:v1 (xenon)

Posted 15 April 2006 - 06:14 PM

wow. this addon is handy as hell.

#14 CattyKid

CattyKid

    X-S Messiah

  • Head Moderators
  • PipPipPipPipPipPipPip
  • 3,618 posts
  • Gender:Male
  • Location:The Great Continental 48
  • Interests:Everything
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 15 April 2006 - 06:16 PM

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

#15 focusedsoul

focusedsoul

    X-S Member

  • Members
  • Pip
  • 89 posts
  • Location:Scotland
  • Xbox Version:v1.4
  • 360 version:v1 (xenon)

Posted 15 April 2006 - 06:23 PM

Just tried it, perfection biggrin.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users