BT box streaming from internet!

Started by is0-mick, 15. Jan 2009, 22:51

previous topic - next topic
Go Down

is0-mick

15. Jan 2009, 22:51 Last Edit: 15. Jan 2009, 22:54 by is0-mick
Hi Guys,
I just thought i'd try a couple of things, and it seems to have paid off!

I quickly hacked the about page which is in \Microsoft\TV2\UI\AboutPage.cs
and added

                Video test = new Video();
                test.TuneToWMSURL("mms://qstream-wm.qbrick.com/00928/rapport/080205rapport1930.wmv");

in the OnSelect_NetworkInfo method.

Like this:


        public void OnSelect_NetworkInfo(Gadget g)
        {
            try
            {
                string hostName = Dns.GetHostName();
                IPHostEntry hostEntry = Dns.GetHostEntry(hostName);
                string str2 = null;
                foreach (IPAddress address in hostEntry.AddressList)
                {
                    if (str2 != null)
                    {
                        str2 = str2 + ", " + address.ToString();
                    }
                    else
                    {
                        str2 = address.ToString();
                    }
                }
                Variables.Set("IPName", hostName);
                Variables.Set("IPAddress", str2);
                Variables.Set("IPGateway", DiagnosticAddress.GetGatewayIPAddress());
                Variables.Set("Bps", Bootstrap.ClientConfig.Bps.ToString());
                string str3 = UIFramework.GetString(TV2SystemConfig.IsOnline ? "Settings.About.NetworkInfo.Connected" : "Settings.About.NetworkInfo.Disconnected");
                Variables.Set("IPTVStatus", str3);
                this._networkInfoTextBox.InvalidateAll();

                //added by mick !
                Video test = new Video();
                test.TuneToWMSURL("mms://qstream-wm.qbrick.com/00928/rapport/080205rapport1930.wmv");             
            }
            catch (Exception exception)
            {
                TV2DefaultExceptionHandler.IgnoreException(this, exception);
            }
        }


See attached picture :)

Mick



Hoernchen

You can basically do the same thing by using the included internet explorer to display webpages with specific html tags, just take a look at the included test pages in the Content dir (VideoEvent.html, videoevent.js, ..)
bringer of linux, conqueror of hdmi, jack of all trades.

is0-mick

yeah, me and mce2222 did that a while ago with the tv2tasman.
but this is doing it direct from the box and not using the tasman app.

Mick

BTVHack

does this work with an smb:// link? possible to stream from xbmc

Go Up