[REQUEST] A general plugin that launches firefox for live TV like JUSTIN.TV..
#1
What you need:
Firefox with a profile named "XBMC" installed on a folder without spaces in the name

DivingMules XBMC plugin: http://ubuntuone.com/p/eZc/ (you might want to also update to this file http://dl.dropbox.com/u/771890/default.py for some new stuff)

Full Fullscreen: fullscreen on firefox startup
https://addons.mozilla.org/en-us/firefox...ullscreen/

Real Fullscreen: removes top border on fullscreen
https://addons.mozilla.org/el/firefox/ad...ullscreen/

Greasemonkey: allows userscripts on firefox
https://addons.mozilla.org/el/firefox/ad...asemonkey/

Firefoxbmc: my userscript that makes every flash video fullscreen and bypasses jtv age verification
http://dl.dropbox.com/u/771890/firefoxbmc.user.js

Bind a button on your remote/gamepad etc to Alt-F4


-- OLD POST BELLOW --

I made this greasemonkey script and have tested it with own3d.tv, justin.tv, ustream, gametrailers and other sites. It makes any video fullscreen like boxee:

Code:
var removed = false;
var allHTMLTags = new Array();
function remove() {
    var allHTMLTags=document.getElementsByTagName("*");
    for (i=0; i<allHTMLTags.length; i++) {
        var allOver18=document.getElementById("over18");
        if (allOver18 != null)
        {
            if (allHTMLTags[i].nodeName.toLowerCase() == "form") {
                if (allHTMLTags[i].action == "") {
                    allHTMLTags[i].submit();
                }
            }
        }
        if ((allHTMLTags[i].nodeName.toLowerCase() =="embed")||(allHTMLTags[i].nodeName.toLowerCase() =="object")) {
            if (allHTMLTags[i].clientWidth  > 500){
                allHTMLTags[i].style.zIndex = 10000;
                document.documentElement.style.overflow = 'hidden';
                var wdth =  window.innerWidth;
                var hgth =  window.innerHeight;
                allHTMLTags[i].style.position = "fixed";
                allHTMLTags[i].style.width = wdth + "px" ;
                allHTMLTags[i].style.height = hgth + "px";
                allHTMLTags[i].style.top = 0;
                allHTMLTags[i].style.left = 0;
                removed = true;
                document.body.appendChild(allHTMLTags[i]);

                allHTMLTags[i].style.visibility = 'visible';
            } else {
                allHTMLTags[i].style.visibility = 'hidden';
            }
            if (!removed)
            {
                setTimeout(function() { remove() }, 1000);
            }
        } else {
                allHTMLTags[i].style.visibility = 'hidden';
        
        }
    }
}
setTimeout(function() { remove() }, 1000);

Can someone make a general XBMC addon that executes firefox.exe on fullscreen (using a firefox addon - https://addons.mozilla.org/en-us/firefox...ullscreen/) with this greasemonkey script for a list of urls in RSS feeds taken live from sites like justin.tv?
Reply
#2
You want Advanced Launcher Application.
How to use Git
| AMD Athlon II X3 Triple Core Processor 2.9 GHz |GIGABYTE GA-MA785GM-US2H Mobo 2GB DDR2 Ram | MSI N430GT |
| Logitec Harmony Smart Control Remote| 52" Sharp Aquos LED TV | Denon AVR-X1000 |
| Freenas Server with 18TB ASRock Intel Avoton C2750 |
Reply
#3
htpc guy Wrote:You want Advanced Launcher Application.

I want something more specialized than advanced launcher.
Need to grab urls and maybe thumbnails from RSS feeds or directly from the sites and launch those in firefox

I believe advanced launcher can't import items from RSS feeds
Reply
#4
I am working along these lines for ESPN3 currently. Its very alpha and I need to figure out how to make ESPN3 go fullscreen automatically.

I suppose I can extend it to Justin.tv etc. But I was primarily interested in sports to start with.

EDIT: Though if you have an RSS feed of Justin.tv etc it wont be too hard to fix up.
Reply
#5
> I need to figure out how to make ESPN3 go fullscreen automatically.

have you checked my script?
give me a url of an ESPN3 stream
Reply
#6
Vrok Wrote:> I need to figure out how to make ESPN3 go fullscreen automatically.

have you checked my script?
give me a url of an ESPN3 stream

I believe I tried it but not 100% sure if it was the exact same script but the one I saw posted before didnt work.

ESPN3 you have to go to the site and then click on a live link. Assuming your ISP has access..(and you are in the United States)
Reply
#7
ksosez Wrote:I believe I tried it but not 100% sure if it was the exact same script but the one I saw posted before didnt work.

This is a new one.. Try it again with this since I'm not in US

ksosez Wrote:EDIT: Though if you have an RSS feed of Justin.tv etc it wont be too hard to fix up.

here is a simple RSS I made for a justin.tv category that also includes the thumbnails: Sorry can't paste the direct RSS url for some reason

Here is the pipe: http://pipes.yahoo.com/pipes/pipe.info?_...78ad00a71c
Click on Get as RSS

I've got similar ones for ustream etc.. And they're not hard to make if you use yahoo pipes: pipes.yahoo.com
Reply
#8
I threw together a plugin that scrapes your pipes page. Now we need to come up with a function that launches Firefox.

plugin.video.pipes.zip

Any ideas?
Reply
#9
divingmule Wrote:I threw together a plugin that scrapes your pipes page. Now we need to come up with a function that launches Firefox.

plugin.video.pipes.zip

Any ideas?

I think we can grab the launching code from advanced launcher somehow but this is what I needed
Now some polishing and it'll rock!

I've got a separate firefox installation just for this with my userscript installed and the fullscreen mode addon

you can just run firefox.exe <url> and it will open the live stream on fullscreen
Reply
#10
Vrok Wrote:This is a new one.. Try it again with this since I'm not in US



here is a simple RSS I made for a justin.tv category that also includes the thumbnails: Sorry can't paste the direct RSS url for some reason

Here is the pipe: http://pipes.yahoo.com/pipes/pipe.info?_...78ad00a71c
Click on Get as RSS

I've got similar ones for ustream etc.. And they're not hard to make if you use yahoo pipes: pipes.yahoo.com


Ill look into adding that. The script you wrote to fullscreen doesnt work on ESPN3. Seems to hang the browser (I am a python guy not a javascript guy so not easy for me to debug)
Reply
#11
ksosez Wrote:(I am a python guy not a javascript guy so not easy for me to debug)

My script just searches for an embed or object tag (embeded flash) and changes its width and height in order to cover the whole screen
Reply
#12
divingmule Wrote:I threw together a plugin that scrapes your pipes page. Now we need to come up with a function that launches Firefox.
Any ideas?

I think you need to make a program plugin and not a video one although I'm not sure.
I checked out the advanced launcher source and it uses an external library to launch stuff with popen
Reply
#13
Vrok Wrote:I think you need to make a program plugin and not a video one although I'm not sure.
I checked out the advanced launcher source and it uses an external library to launch stuff with popen
The external library is just an "hack" of the subprocess python library (from XBMC) to allows child process (started application or script ) to kill parent process (XBMC application). This external library is used only for this. Wink
Reply
#14
Angelscry Wrote:This external library is used only for this. Wink

Ah ok thanks!.. Do you know if we can launch an external exe from a video plugin?

I changed the script in the first post a bit (some minor enhancements).
I also enhanced the justin.tv pipe so that we can get categories and added the full description on the title: http://pipes.yahoo.com/pipes/pipe.info?_...0162ab5337


Here is my ustream pipe: http://pipes.yahoo.com/pipes/pipe.info?_...b62f740f0a

I can do pipes for most sites out there so if you guys manage to make the xbmc addon it would be awesome Smile
Reply
#15
edit: looks like the first thing I was doing wrong was using backslash Confused
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
[REQUEST] A general plugin that launches firefox for live TV like JUSTIN.TV..00
This forum uses Lukasz Tkacz MyBB addons.