Page 1 of 2

Web browser in Content Library

Posted: Wed Nov 18, 2009 1:07 am
by antapetr
aquadran wrote:
jojomail wrote:Do you think it's possible to dream about a little web browser on our TV's ?
Yes, it's possible, tv has free 200mb ram available and plenty space on usb drive. cpu has not bad speed. mouse and keyboard can be used too.
So yes, you can dream about it :)
For web browser we need 3 things:
  1. network access
  2. some input method
  3. html rendering/javascript runtime engine
  4. show results on the TV screen
1. and 3. aren't problems at all, 2. and 4. allows us to use only SDL to do things.
To have fully functional browser we should wait for Fennec (Firefox for mobile) port on SDL but it sounds a bit unrealistic. For limited functionality I found one that says it has port on SDL - this is NetSurf. By looking at last release I can't find building instructions for SDL port but maybe some of you will find.

Re: Web browser in Content Library

Posted: Wed Nov 18, 2009 1:23 am
by erdem_ua
antapetr wrote:
aquadran wrote:
jojomail wrote:Do you think it's possible to dream about a little web browser on our TV's ?
Yes, it's possible, tv has free 200mb ram available and plenty space on usb drive. cpu has not bad speed. mouse and keyboard can be used too.
So yes, you can dream about it :)
For web browser we need 3 things:
  1. network access
  2. some input method
  3. html rendering/javascript runtime engine
  4. show results on the TV screen
1. and 3. aren't problems at all, 2. and 4. allows us to use only SDL to do things.
To have fully functional browser we should wait for Fennec (Firefox for mobile) port on SDL but it sounds a bit unrealistic. For limited functionality I found one that says it has port on SDL - this is NetSurf. By looking at last release I can't find building instructions for SDL port but maybe some of you will find.
2. is ok too with Keybord and Mouse support - evdev. You can now use your Keyboard and Mouse with Samsung TV's. (again exeDSP doesn't support those devices)
4. Browsing thru SDL is good but I preffer using framebuffer device directly at Chelsie chip :D

Re: Web browser in Content Library

Posted: Wed Nov 18, 2009 1:37 am
by aquadran
there is also another SDL browser:
http://www.sand-labs.org/owb

Re: Web browser in Content Library

Posted: Thu Nov 19, 2009 1:41 am
by erdem_ua
So, when we open FaceBook on Samsung TV? :D

Re: Web browser in Content Library

Posted: Sun Dec 06, 2009 11:10 pm
by geo650
For a few days I am trying to view some internet webpages on my B650. With success!
But I am not using Content Library for this task. Instead, I am editing InfoLink Widgets Manager.
When you press Internet@TV button on your remote, it starts /mtd_down/widgets/manager/400009002/index.html file and shows it up. And this is the clue: YOU CAN EDIT THIS FILE, redirect to somewhere else etc.

Before you start editing index.html file, please make a copy, for example using cp command in telnet window.

Here is what I have got to know: To read a button, you must make a link and set focus to it like here (a piece of index.html):

Code: Select all

... 
<body onload='start()' bgcolor="#000000" text="#F0F0F0">
...
Press <a href='javascript: void(0);' id='link_id' onkeydown='key_function();'>
<img border=0 src='Resource/images/Common/help_back.png'>
</a> for Google
...
then add JavaScript functions like these below:

Code: Select all

<script type='text/javascript' language='javascript'>
start = function() {
document.getElementById("link_id").focus();
}

key_function = function() {
  switch (event.keyCode)
  {
        case 88://KEY_RETURN:
                location.href = "http://www.google.com/";
                break;
        default:
                break;
  }
}
</script>
But there is a problem. It can only read 4 buttons using this method. Recognized keys are: RETURN, EXIT, ENTER and Internet@TV. Arrows are not recognized at all and other keys exit widget manager. Anybody know how to "activate" other keys to be seen using "event.keyCode" value ?
Key code values can be found in /mtd_down/widgets/manager/400009002/Common/API/TVKeyValue.js file.

The other problem is that webpages and images are cached by TV so when you exit widget manager and start it again, it shows exactly the same contents as before. It doesn't refresh external images (like webcam gif, for example).

Maybe some of you have been playing with widget manager a bit longer than me and could answer these questions?

Re: Web browser in Content Library

Posted: Sun Dec 27, 2009 6:29 pm
by goaskin
Key code values can be found in /mtd_down/widgets/manager/400009002/Common/API/TVKeyValue.js file.
I also have a B650 but this file dows not exist. Even the path /mtd_down/widgets/manager/ does not exist. Also, there is no file called TVKeyValue.js nowhere...

Re: Web browser in Content Library

Posted: Fri Jan 29, 2010 12:53 pm
by geo650
I suppose, the starting point for built-in browser (MAPLE4?) is hidden in exeDSP binary (am I right?) In Samsung B650T2W, when you hit "Internet@TV" button on the remote-control it is starting from /mtd_down/widgets/manager/400009002/index.html.

Now I am working on my own widget manager (simple and fast main menu and some useful tools like bus-stop info, weather chart, internet camera view). Everything can be made in HTML pages with JavaScript code. Now I know how to catch any remote-control button in HTML page. It is quite simple: you must load internal plugin, then register that button or all buttons. There are 10 known plugins used in the original widget manager. Unfortunately, there is no documentation for them but you can get to know something by analysing original widgets.

I wonder if somebody know how to create a plugin? Plugin files can be found in /mtd_drv/InfoLink/lib directory. You can control your TV, unzip, create or delete files, download data, get some TV settings (model designator, serial number, language, country info etc.) and more directly from JavaScript code using these plugins.

If you want to edit the widget manager in your B65xT2P model, you have to find the starting point (url) for internal browser there. I don't know what is done before reaching index.html in my TV (when widget manager initializes). I wonder if it could be initialized a bit faster?

The files in T2W and T2P models are completely different.
The dates of the files are strange because TV has no built-in clock. When you set the date in telnet using "date" command, this will be forgotten when you shut down the device. I run NTP client service in my starting script, so I have always correct date and time in my TV.