Application with screen automatic show

Application with screen automatic show

  
I need to build an application where its screens must be showed automatically in a pre-defined sequence after a delay time past. It is an application to run in a smartv in a public place.How can I do this?
How about you put some javascript in your pages that have a timeout (setTimeout()) and have that code redirect to the other pages in a loop?
Hi Roberto,

We here in OutSystems have some dashboards screens showing in TVs.
The very low tech solution we did was to have a page with just preparation ending with a download node with the following (I'll just edit the urls, also the mime type needs to be set to "text/html; charset=utf-8"):

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Application Switcher</title>
<script>
var links = ["http://some.domain.com/Dashboard/HomeTv.aspx","http://some.domain.com/Dashboard/ReportScreen.aspx"];
var i = 0;
var renew = setInterval(function(){
    document.getElementById("foo").src = links[i];        
    if(links.length == (i+1)){
        i = 0;
    }
    else i++;
},60000);
</script>
</head>

<body>
<iframe id="foo" src="http://some.domain.com/Dashboard/" width="1280" height="720" ></iframe>
</body>
</html>


Regards,
João Rosado
By the way, just as a warning, we found that some SmartTVs browsers have memory leaks (expecially when showing pages with Flash graphics).
In some cases after many refreshs it ends up freezing with OutOfMemory errors.

So if you end up with the same problem try adding to the script to force a refresh after a specified period of time (my example has 1hour refresh time):

setInterval(function(){ window.location.reload() }, 3600000);

Regards,
João Rosado
Hi João,

Thank you very much by your valuable information. I'll analyse and to do some tests.

Best Regards,

Roberto
Hi João,

In wich server directory do I copy this html script? Sorry, but I'm not a html programmer. And how do I call it from my browser?

Thank you,

Roberto
Hi João,

I solved the problem copying the script to the wwwroot directory. Great! It works perfectly. However, I have a problem. When I run the application without the script, the screen stay perfect, using all tv dimensions (1920 x 1080). When I run the script (that has a frame with the same dimension) the screen growns, and only reducing the dimension frame I get the similar (but ugly) visual screen. Can you help me?

Hi,

So if in the above code you set it to width="1920px" height="1080px" it gets bigger than it should?
Hi João,

I already set wiidth="1920" height="1080" (without "px" word) and the screen shows a horizontal and vertical rollout. To see all the screen I need use the rollout edges.. I attached the smart tv picture of the application running without the script, i.e, direct from the Outsystems by browser. Can this effect generated by Frame command? 

Thanks