t-hack.com

English - X300T / X301T / DIT9719 / KISS KMM / BT Vision / Bluewin TV-Box / V-BOX/ VIP 1216 or similar Hardware => Software => Topic started by: is0-mick on 15. Jan 2009, 22:51

Title: BT box streaming from internet!
Post by: is0-mick on 15. Jan 2009, 22:51
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


Title: Re: BT box streaming from internet!
Post by: Hoernchen on 15. Jan 2009, 23:13
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, ..)
Title: Re: BT box streaming from internet!
Post by: is0-mick on 15. Jan 2009, 23:22
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
Title: Re: BT box streaming from internet!
Post by: BTVHack on 29. Jan 2009, 12:32
does this work with an smb:// link? possible to stream from xbmc