-
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
enhancementNew feature or application improvementNew feature or application improvementinteg reqThird party integration requestThird party integration requestquestionAdditional information is requested or neededAdditional information is requested or neededupstreamRequires dependency updatesRequires dependency updateswontfixThis will not be worked onThis will not be worked on
Description
With the recent potential db changes to Jellyfin, the viability of using it as a Plex replacement is becoming real.
Currently, the webhooks provided by jellyfin are not sufficient for notifying of new playback events with the amount of data required to kill a transcode. To circumvent this, I'd like to propose the following running on a 30s-1m interval--
/Sessions?ActiveWithinSeconds=30&apikey=<REDACTED>
From there, you can iterate through current sessions: this may look like
# https://api.jellyfin.org/#tag/Session/operation/GetSessions
#https://api.jellyfin.org/#tag/HlsSegment/operation/StopEncodingProcess
# Responses are in JSON
x.TranscodingInfo.IsVideoDirect = True/False
x.NowPlayingItem.Height >= <Resolution>
x.Id <SessionID>
# Get Active Sessions within last 30 seconds
/Sessions?ActiveWithinSeconds=30&apikey=<apiKey>
# Sending Message
POST '{"Text":"No 4K Transcoding!","TimeoutMs":5000}' /Sessions/<Id>/Message?apikey=<apiKey>
# Stopping Transcode
POST /Sessions/<Id>/Playing/Stop?apikey=<apiKey>
Metadata
Metadata
Assignees
Labels
enhancementNew feature or application improvementNew feature or application improvementinteg reqThird party integration requestThird party integration requestquestionAdditional information is requested or neededAdditional information is requested or neededupstreamRequires dependency updatesRequires dependency updateswontfixThis will not be worked onThis will not be worked on