Idle Redirect

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I have created a series of interactive kiosks.  After, say 90 seconds, of no user activity, I want the displays to redirect to a 'screensaver' presentation that cycles through pictures - and when touched, goes to the main home presentation.

I have tried following past articles and guides on this site, but the referring content doesn't exist, and the code snippets don't work.

Alternatively, I have found a Chrome Extension called Idle Reset that accomplishes this... but after some time the player seems to remove it from chrome and I'm back to where I started.

Any tips?
Photo of Joe Wakeman

Joe Wakeman

  • 162 Points 100 badge 2x thumb

Posted 3 years ago

  • 1
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
It would be interesting to hear from anyone else if they have implemented something similar to what it is that you are looking to do!

Do you have a list of threads that you are already looked into? That way we don't duplicate anything that has already been tried. Also can you send through a link of the presentation/s that you are working on, as well as details about the Display set up such as OS and also which Player it's on.

Thanks
Hannah
Photo of jeff

jeff

  • 4,150 Points 4k badge 2x thumb
Joe, I have a system that I put together an inactive redirect page for.  Good thing about the presentations are that they are done as ap divs, and allows you to hide things :-)

I did this using the free web widget; the following code went in the head section of the page. I put it under that top stuff about w3.org and charset.

I had this redirect to a page called "announcements.html; it's in the same folder as the page with the code. Time units are milliseconds, so 6000 = 6 sec; you could set to 90000 for 90 seconds.  Here is the code; I think the link part at the bottom is required for this to work (it displays the counter time). I hid this with an overlay in another placeholder:

<script type="text/javascript">
var time_lapsed=0;
function count_seconds()
{
    if(time_lapsed==6000)
    {
        location.href='announcements.html'; // redirect
    }

    else
    {
        document.getElementById('x').value=time_lapsed; // can be removed along with the INPUT field
        time_lapsed++;
        setTimeout("count_seconds()",100);
    }
}
window.onload=function()
{
    count_seconds();
    document.onclick=function(){time_lapsed=0;}
    document.onmousemove=function(){time_lapsed=0;}
    document.onscroll=function(){time_lapsed=0;}
    document.onkeydown=function() {time_lapsed=0;}

}
</script>

<link href="../../stylesheets/SEW-styles.css" rel="stylesheet" type="text/css" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;Time to redirect (redirects at 6000 count) = <input type="text" id="x">

Hope this helps.  Happy new year & God Bless!
Photo of Joe Wakeman

Joe Wakeman

  • 162 Points 100 badge 2x thumb
If I do that, I lose interactivity on the other stuff on the page (the redirect placeholder is 1920x1080- same size as the presentation.  If it's smaller than that, it only registered touch on it's small area.
Photo of jeff

jeff

  • 4,150 Points 4k badge 2x thumb
Are the other placeholders displaying web widgets? If so, you could put the code in all pages and they all should redirect roughly the same time (might be some latency with a bunch of pages loading to the screen).

If they aren't all web widgets, then I dunno.
Photo of jeff

jeff

  • 4,150 Points 4k badge 2x thumb
Can you build the interactivity into that same web page? That would fix it.
Photo of Joe Wakeman

Joe Wakeman

  • 162 Points 100 badge 2x thumb
They are all different widgets- text, Directory.

I did some messing around tonight and discovered a few things:  if I bring that placeholder to the top/front most, it refreshes the whole page (but I lose interactivity on the directory widget).  Additionally, if I bring it to the top/front and make it not visible, I get interactivity back - but the counter script doesn't seem to take effect/run.
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Joe,

This may be a little after the fact, but have you checked out this Developer help page?: https://help.risevision.com/developer/presentations/multi-page/multi-page-presentations

Anything on there that may assist?
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Thanks Jeff. Joe let us know how it works out for you regarding the suggestion above.