• 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 Plugin Development jellyfin Screensaver

     
    • 2 Vote(s) - 5 Average

    jellyfin Screensaver

    Oleg Kosarev
    Offline

    Junior Member

    Posts: 9
    Threads: 3
    Joined: 2024 Aug
    Reputation: 0
    Country:Mexico
    #1
    2024-08-17, 04:45 PM (This post was last modified: 2024-08-17, 04:48 PM by Oleg Kosarev. Edited 1 time in total.)
    Hello, maybe someone can tell me or give me a hint in the documentation, I didn't find how to make a plugin and register it for the screensaver. If I take the standard plugin template, everything is installed and I see the config, but I don't understand how to make a new screen north appear. Ideally, if there are sources and you can look at the sources of "Backdrop Screensaver"

    In general, ideally, explain in more detail or point me to a page in the documentation where I can read how to use js css html because I already have an example of a screensaver in js css html and I want to put it in.... on the screenshot...


    Attached Files Thumbnail(s)
       
    jennystreaming
    Offline

    Junior Member

    Posts: 24
    Threads: 3
    Joined: 2024 Jun
    Reputation: 0
    Country:Finland
    #2
    2024-08-17, 07:02 PM
    Would you mind share it? looks cool, hopefully someone can find out how to "convert" it
    thornbill
    Offline

    Core Team

    Posts: 173
    Threads: 6
    Joined: 2023 Jun
    Reputation: 8
    Country:United States
    #3
    2024-08-17, 08:59 PM
    Plugins cannot make ui changes.
    [Image: thornbill?style=flat&logo=github]
    1
    1
    Oleg Kosarev
    Offline

    Junior Member

    Posts: 9
    Threads: 3
    Joined: 2024 Aug
    Reputation: 0
    Country:Mexico
    #4
    2024-08-17, 09:39 PM (This post was last modified: 2024-08-17, 11:17 PM by Oleg Kosarev. Edited 3 times in total.)
    (2024-08-17, 07:02 PM)jennystreaming Wrote: Would you mind share it? looks cool, hopefully someone can find out how to "convert" it

    In fact, the code was written quite quickly and is of low quality. This web application displays the current time, a weather report with dynamic background images, and updates data every hour. The code does not adhere to SOLID principles, and translations are stored directly in JavaScript. I can fully document and send an archive, but I'm concerned it may be perceived as bad code.

    P.S. I have posted the code at  Dynamic Nightlight SRC. If anyone needs it, feel free to take and use it. Please keep in mind that the quality of the code is not ideal. I would appreciate if you could avoid harsh criticism, and I might work on improving it in the future.

    P.S. While I was out at the store, I had a thought: if plugins cannot make UI changes
    (2024-08-17, 08:59 PM)thornbill Wrote: Plugins cannot make UI changes.
    , perhaps we could consider creating a Windows screensaver instead. With that in mind, I have a question for the developers: is it possible to somehow obtain the current playback state (play/pause/stop) and, if so, is it possible to retrieve the fanart of what is currently playing or paused through a token? This could allow us to partially implement my screensaver idea.
    jennystreaming
    Offline

    Junior Member

    Posts: 24
    Threads: 3
    Joined: 2024 Jun
    Reputation: 0
    Country:Finland
    #5
    2024-08-18, 06:37 PM
    Probably an unpopular opinon but I really hope you get a positive feedback on that, feel that devs have been kind of shot down lately and lots of suggestions are simply "not support, or not in the plans".


    (2024-08-17, 09:39 PM)Oleg Kosarev Wrote:
    (2024-08-17, 07:02 PM)jennystreaming Wrote: Would you mind share it? looks cool, hopefully someone can find out how to "convert" it

    In fact, the code was written quite quickly and is of low quality. This web application displays the current time, a weather report with dynamic background images, and updates data every hour. The code does not adhere to SOLID principles, and translations are stored directly in JavaScript. I can fully document and send an archive, but I'm concerned it may be perceived as bad code.

    P.S. I have posted the code at  Dynamic Nightlight SRC. If anyone needs it, feel free to take and use it. Please keep in mind that the quality of the code is not ideal. I would appreciate if you could avoid harsh criticism, and I might work on improving it in the future.

    P.S. While I was out at the store, I had a thought: if plugins cannot make UI changes
    (2024-08-17, 08:59 PM)thornbill Wrote: Plugins cannot make UI changes.
    , perhaps we could consider creating a Windows screensaver instead. With that in mind, I have a question for the developers: is it possible to somehow obtain the current playback state (play/pause/stop) and, if so, is it possible to retrieve the fanart of what is currently playing or paused through a token? This could allow us to partially implement my screensaver idea.
    Oleg Kosarev
    Offline

    Junior Member

    Posts: 9
    Threads: 3
    Joined: 2024 Aug
    Reputation: 0
    Country:Mexico
    #6
    2024-08-18, 11:38 PM
    (2024-08-18, 06:37 PM)jennystreaming Wrote: Probably an unpopular opinon but I really hope you get a positive feedback on that, feel that devs have been kind of shot down lately and lots of suggestions are simply "not support, or not in the plans".


    (2024-08-17, 09:39 PM)Oleg Kosarev Wrote:
    (2024-08-17, 07:02 PM)jennystreaming Wrote: Would you mind share it? looks cool, hopefully someone can find out how to "convert" it

    In fact, the code was written quite quickly and is of low quality. This web application displays the current time, a weather report with dynamic background images, and updates data every hour. The code does not adhere to SOLID principles, and translations are stored directly in JavaScript. I can fully document and send an archive, but I'm concerned it may be perceived as bad code.

    P.S. I have posted the code at  Dynamic Nightlight SRC. If anyone needs it, feel free to take and use it. Please keep in mind that the quality of the code is not ideal. I would appreciate if you could avoid harsh criticism, and I might work on improving it in the future.

    P.S. While I was out at the store, I had a thought: if plugins cannot make UI changes
    (2024-08-17, 08:59 PM)thornbill Wrote: Plugins cannot make UI changes.
    , perhaps we could consider creating a Windows screensaver instead. With that in mind, I have a question for the developers: is it possible to somehow obtain the current playback state (play/pause/stop) and, if so, is it possible to retrieve the fanart of what is currently playing or paused through a token? This could allow us to partially implement my screensaver idea.

    I think so too... yesterday I tried to transfer mine to c# for further conversion into a regular windows screensaver, but since I basically wrote console applications in c#, I don't have enough knowledge to do it correctly and just as beautifully... I'll think further about how to implement this...
    Oleg Kosarev
    Offline

    Junior Member

    Posts: 9
    Threads: 3
    Joined: 2024 Aug
    Reputation: 0
    Country:Mexico
    #7
    2024-08-21, 08:32 PM
    (2024-08-17, 07:02 PM)jennystreaming Wrote: Would you mind share it? looks cool, hopefully someone can find out how to "convert" it

    Hi! I've made some progress in the organization. On the Linux server where Jellyfin runs, I installed a minimal GUI shell with a browser and now I run it in the browser in full screen. Basically, I partially achieved my goal.

    I've changed the logic dramatically: I added display of playback status and getting fanart, if available. The logic is as follows:

    1) If the music is paused or playing, the fanart is displayed (if any); if there is no fanart, the current weather image is used.
    2) If nothing is playing, the current weather image is always shown.
    I plan to finish working on the date in the next few days and conduct a full test. If you are interested, I can send you the source code.


    Attached Files Thumbnail(s)
       
    1
    Oleg Kosarev
    Offline

    Junior Member

    Posts: 9
    Threads: 3
    Joined: 2024 Aug
    Reputation: 0
    Country:Mexico
    #8
    2024-08-29, 10:37 AM
    Released version 1.5.0, all configuration is in the js/config.js file, custom styles are placed in resources/css/custom.css

    The Play/Pause button is interactive (when pressed, the suggested action is performed)
    I plan to also attach an album cover next to the clock on the left and so that you can scroll back and forth through songs...

    P.S.
    Since I have it almost at the exit, it is more convenient for me to poke my finger on the monitor to pause or continue playback when I leave or come in and almost not monitor whether I turned off the muse on the computer or not...
    1
    « 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