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?