Plex 2E

 View Only
  • 1.  Inactivity Timeout

    Posted Aug 21, 2017 06:23 PM

    Hi Plex Community,


    Has anyone implemented an inactivity timeout in a Plex app? any suggestion how to implement it?





  • 2.  Re: Inactivity Timeout

    Posted Oct 04, 2017 05:28 AM

    Hi Christian,


    Try the following :


    In Application Exe Function :

    • Add Clock Tick Event.
    • Fetch time out settings and convert to seconds.
    • On clock tick event , increment counter and compare with time out seconds. When counter equals time out seconds execute time out process.(Terminate with message).
    • Add a Event : ResetCounter (Initialize counter to zero)


    In other application functions that decide activity.

    • At the pattern level add processing in "Any Event".
    • Any Event : Trigger Event to execute Event : ResetCounter in the Application Exe.


    Hope this helps.


    Ashfaq Ahmed