• 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 Webhook API - playback status

     
    • 0 Vote(s) - 0 Average

    Webhook API - playback status

    podonnell
    Offline

    Member

    Posts: 103
    Threads: 24
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #1
    2024-07-03, 02:10 AM
    I am playing around with the webhook API, and trying to send an event when the user pauses. It seems this is only detected when 'Playback Progress' is included. This however is sending tons of webhook requests during playback. Is there any way to detect a 'pause' action being taken, or is the 'IsPaused' status only detected if you send requests during Playback Progress?
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 243
    Threads: 0
    Joined: 2023 Jun
    Reputation: 17
    Country:United States
    #2
    2024-07-03, 02:30 AM
    Looking at the server code, I believe that is the only way to determine whether playback is paused
    podonnell
    Offline

    Member

    Posts: 103
    Threads: 24
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #3
    2024-07-03, 03:45 AM
    (2024-07-03, 02:30 AM)crobibero Wrote: Looking at the server code, I believe that is the only way to determine whether playback is paused

    Thanks for the info. May try to work with it and introduce a rate limiter or something. Would love if we could detect a pause action.

    Separate related question:

    Trying to pull the primary art for a series/movie, but item seems to be the specific episode art instead of the show artwork.
    Using: {{ServerUrl}}/Items/{{ItemId}}/Images/Primary

    Is there a list of what I could use in place of ItemId anywhere? I was searching the webhook github but this was the only example I could see, specifically the itemid.

    Thanks!
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 243
    Threads: 0
    Joined: 2023 Jun
    Reputation: 17
    Country:United States
    #4
    2024-07-03, 12:37 PM
    Support for SeriesId was added but not added to the README.

    This is the file that adds all of the properties as some are missing from the README: https://github.com/jellyfin/jellyfin-plu...Helpers.cs
    podonnell
    Offline

    Member

    Posts: 103
    Threads: 24
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #5
    2024-07-05, 02:34 AM
    (2024-07-03, 12:37 PM)crobibero Wrote: Support for SeriesId was added but not added to the README.

    This is the file that adds all of the properties as some are missing from the README: https://github.com/jellyfin/jellyfin-plu...Helpers.cs

    Thanks for this. Going to look through, but any idea if there is a variable that would capture a series/movie thumbnail? ItemID worked for movies but was just grabbing episode thumbnails instead of series thumbnail.
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 243
    Threads: 0
    Joined: 2023 Jun
    Reputation: 17
    Country:United States
    #6
    2024-07-05, 02:39 AM
    You would need to switch on media type to do what you want
    podonnell
    Offline

    Member

    Posts: 103
    Threads: 24
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #7
    2024-07-05, 03:10 AM
    (2024-07-05, 02:39 AM)crobibero Wrote: You would need to switch on media type to do what you want

    Sorry, is this a template setting, or a variable that would contain that data?
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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