• 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 Support General Questions Schedule a pause for users or limit time to access/watch

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    Schedule a pause for users or limit time to access/watch

    Schedule a pause for users or limit time to access/watch
    kuligs2
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    #1
    2024-02-13, 06:34 PM
    Hi, is there a way to schedule a pause for users on jellyfin server? What i mean if i watch a movie or series and fall asleep i would like it to stop at some point.

    Like i would set to pause time for my user session or active movie or something at like 01:00am .

    This way, at least when im watching on phone the phone screen turns off and saves battery Smiling-face


    If anyone knows a way to achieve this, could you post how?
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #2
    2024-02-13, 07:29 PM
    what you are wanting is a client side feature not a server one so you will have to investigate this for your unnamed client on your unnamed device

    it would be called a "Still Watching?" feature
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-02-13, 07:52 PM (This post was last modified: 2024-02-13, 07:52 PM by TheDreadPirate.)
    This is not currently a thing in Jellyfin. What I, and some other people do, who fall asleep to re-runs is to set a sleep timer on the TV. But you need to ensure your TV has CEC enabled so that the TV tells Jellyfin to stop streaming.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    kuligs2
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    #4
    2024-02-13, 08:12 PM
    the problem is watching on phone Slightly-frowning-face. and why cant it be server side thing? i can log into dashboard and stop stream. why cant there be a scheduler or allowed times when users can be or allowed to watch stuff or something liek that? parental control or something..
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #5
    2024-02-13, 08:20 PM
    (2024-02-13, 08:12 PM)kuligs2 Wrote: the problem is watching on phone Slightly-frowning-face. and why cant it be server side thing? i can log into dashboard and stop stream. why cant there be a scheduler or allowed times when users can be or allowed to watch stuff or something liek that? parental control or something..

    this should be a client side thing, i can't imagine a server kicking people off because they fell asleep

    but, that's just my opinion

    if you feel strongly enough that it really needs to be a server feature then by all means fill out a feature request https://features.jellyfin.org
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-02-13, 08:25 PM
    There are also phone apps that have a similar function. Of course, you need to know you intend to fall asleep to enable it.

    Netflix and other streaming services do it purely to conserve their bandwidth costs. With self hosting that is rarely a concern, especially with local clients.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    kuligs2
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    #7
    2024-02-13, 09:21 PM
    Well i guess ill have to write up a page that handles this.. good thing it can be done using API. It would be good if you could atleast point me to the docs but i found it myself. https://api.jellyfin.org/#tag/Session/op...ateCommand

    Could write up a sort of tasker that would send commands to user at speciffic times, like a cron job or something.. it would be nice to have a plugin like that built in, but im too dumb to do it in C#
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #8
    2024-02-13, 09:30 PM (This post was last modified: 2024-02-13, 09:35 PM by tmsrxzar. Edited 1 time in total.)
    (2024-02-13, 09:21 PM)kuligs2 Wrote: It would be good if you could atleast point me to the docs but i found it myself.

    99% of people coming to forums for answers are not developers
    98% do not write code

    so i do not offer options that cannot be done by a "normal" user (via interface or prebuilt options)
    had you asked i could have linked it, pretty obvious it wasn't necessary for me to do so

    given you mentioned doing a cronjob, why not just set a cronjob to restart the jellyfin server every morning at 1am
    restarting the server should kick off all users
    kuligs2
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    #9
    2024-02-13, 09:57 PM (This post was last modified: 2024-02-13, 10:00 PM by kuligs2.)
    Restarting server might work, but im not sure if it will pause the episode im currently on. so tha i can continue next day. and doing brutal shutoff is kinda.. well.. brutal.. Also i have user specific cases. Some users have schedule that they need to follow etc.

    I think ill make simple table type thing webui for internal use, where it querries all the sessions, then you pick a session by username and device name, store those two in some DB - json file, then create new entry in table to set the time you want to pause this session, send warning message 30s before it pauses "steam will pause in 30s" and 1s after it pauses "stream has been paused". Rinse and repeat. Only thing im worried about querrying the session id every day, becasue when you GET /Sessions its 10k of lines of data that gets returned. And atm i have only sentient users.. but it returns some background apps sessions too wich i dont need atm. Not sure if session id changes with each day or server reboot or whatever.. or does it stay the same with user/device. Like phone app session id will stay the same but web browser session id will constantly change on every login. IDK..
    Or maybe ill just make bash script that does the thing automagically, but then it will be a pain to edit and tweak if need be. Still not sure how to tackle this..

    But it would be cool if you could set to stop playing per episodes. like you mark an episode in playlist to be the last for today and when it ends then the playlist is paused or shut down so that the phone can go into sleep mode.
    Betonhaus
    Offline

    Junior Member

    Posts: 23
    Threads: 6
    Joined: 2024 Feb
    Reputation: 0
    Country:Canada
    #10
    2024-10-30, 12:07 AM
    I can see the use for having a scheduled restrictions thing, for kids and adults who can't manage their own sleep times.

    It could be something where at a certain time no new streams can be started (but existing ones can continue), and after a certain time all streams are halted. The former may be glitchy as the Android TV client repeatedly disconnects and reconnects during a stream, according to server logging.

    maybe being able to restrict what media is allowed on certain days and times, such as blocking mature content when parents aren't home.

    It would admittedly be a bit of work, and last i checked Jellyfin is in a feature freeze while they work on stability.
    Pages (2): 1 2 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • 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