1

Website refresh after last touch input

Hello everyone,
I am using a BightSign LS445 player to display an HTML5 website. This can be used via touch input.
However, I would like to set it so that approximately 5 minutes after the last touch input, the page is reloaded similar to a timeout event.
Is there a specific setting for this?

Thanks in advance. 

 

7 comments

  • 0
    Avatar
    Justin

    Hello Norman, thank you for your answer. 

    In my case, it’s not a locally hosted website - I’m only using the BrightAuthor:Connected software. So I don’t have access to make any JavaScript adjustments.

    I’ve already configured a timeout event within BrightAuthor:Connected, but it triggers independently of any last touch input. That’s the behavior I’m currently trying to address.

    When I tried adjusting the Timeout Setting , the touch variable was still ignored, and the page would reload entirely every 5 minutes.

    Thanks in advance.

     

     

     

  • 0
    Avatar
    Steven Green

    You can handle this with JavaScript by tracking the last touch event and using a timeout to reload the page. Have you tried adding an event listener for touchstart and resetting a timer on each interaction? @fnf

     

  • 0
    Avatar
    Ian MacColl

    @Justin: Did you work out a way to do this? I’m also looking for this, but I can’t find any way to do it other than JavaScript in the content.

  • 0
    Avatar
    Justin

    @Ian MacColl sadly I wasn´t able to find another way except the JavaScript version. 

    In the End now I just used an Timeout Event, without any connection to the Touch input. 

  • 0
    Avatar
    Brandon
    1. Create a User Variable named idleTimeout (or whatever you want, just replace appropriately later)
      Set the default value to whatever you want the idle timeout to be in seconds - so 300 for 5 minutes

    2. Add a Zone Message event on the HTML state that transitions back to the same HTML state (this will be the reload) set message to reloadPage (or whatever you want, just replace appropriately later)

    3. Create a new Image zone

    4. Set the zone size to the full screen or whatever the HTML area is

    5. Put a transparent PNG in the zone

    6. Put a 1-second Timeout event on the transparent PNG
      Add Conditional Target:
      Condition: If idleTimeout > 0 transition back to the same transparent PNG
      Command: Other>Decrement variable idleTimeout
      > This counts the timer down if it isn't exhausted
      Add Conditional Target:
      Condition: If idleTimeout = 0 transition back to the same transparent PNG
      Command: Send>Zone Message reloadPage
      Command: Other>Reset variable idleTimeout
      > This reloads the page and resets the timer again

    7. Add Rectangular Touch event to the transparent PNG
      Add touch item set to the full area
      Command: Other>Reset Variable idleTimeout
      > This resets the countdown every time there's a touch.

    8. Add another Image Zone

    9. Add a Live Text zone to the Image Zone
      Add item: User Variable idleTimeout
      > This will let you see the countdown go down and reset when touches occur - you wouldn't have this visible in a production screen unless you want a message/countdown visible.

    If you want to be more sophisticated (and don't have any other means of navigation other than touch on the HTML), you could add more logic to have the first touch start the timer, rather than unnecessarily reloading the page every idleTimeout seconds when nobody's interacting with the screen.

    _________________________________________________________________________
    Friendly reminder, the community forum is intended for user-to-user discussion.  It is not regularly monitored. For troubleshooting problems and to ensure a timely answer from a BrightSign representative, please submit a support ticket

  • 0
    Avatar
    Ian MacColl

    Thanks, Brandon

    Sorry, the player is elsewhere, otherwise I would test this myself...

    Does a touch get handled by both the Touch Event in 7 and also by the HTML Widget (HTML etc loaded by Chromium)?

    So if, say, a link is touched, idleTimeout resets and the link is opened?

  • 0
    Avatar
    Brandon

    @Ian - yes, the touch is still recognized by the HTML content.
    _________________________________________________________________________
    Friendly reminder, the community forum is intended for user-to-user discussion.  It is not regularly monitored. For troubleshooting problems and to ensure a timely answer from a BrightSign representative, please submit a support ticket

Please sign in to leave a comment.