• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Development Web Development function user inactive

     
    • 0 Vote(s) - 0 Average

    function user inactive

    user sleeping
    Jobar
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:France
    #1
    2024-09-10, 09:37 AM (This post was last modified: 2024-09-10, 05:12 PM by Jobar. Edited 1 time in total.)
    Hi,

    I just created a function to manage user inactivity during continuous playback. Indeed, if the user is asleep or away, the playback continues indefinitely.
    To get around this problem, my script runs a timer and checks that there is no keyboard or mouse event otherwise it resets the timer.
    If the time is up, a popup will be displayed to confirm whether or not the user is present.
    without a response from the user, this popup appears 30 seconds and redirects Jellyfin to the home page.
    This script does not display the popup on the home page and dashboard.

    To integrate it, a modification of the index.html page is enough.

    There is just the choice of:
    - The duration of inactivity chosen: 3 hours by default.
    - The duration of the popup: 10 seconds by default.
    - translate texts into the language of the user.

     inactive.user.js

    JoBar.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    function user inactive - by Jobar - 2024-09-10, 09:37 AM
    RE: function user inactive - by Jobar - 2024-10-01, 04:29 AM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode