Skip to content

Commit

Permalink
Add PlayMethod variable (#197)
Browse files Browse the repository at this point in the history
As requested in #183

To see if the user is transcoding or not. Returns either "Transcode", "Direct Stream"  or "Direct Play".
  • Loading branch information
zeroquinc authored Oct 4, 2023
1 parent b78515a commit 5183384
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ public static Dictionary<string, object> AddPlaybackProgressData(this Dictionary
dataObject[nameof(playbackProgressEventArgs.DeviceName)] = playbackProgressEventArgs.DeviceName;
dataObject[nameof(playbackProgressEventArgs.ClientName)] = playbackProgressEventArgs.ClientName;

if (playbackProgressEventArgs.Session is not null && playbackProgressEventArgs.Session.PlayState?.PlayMethod is not null)
{
dataObject["PlayMethod"] = playbackProgressEventArgs.Session.PlayState.PlayMethod;
}

return dataObject;
}

Expand Down

0 comments on commit 5183384

Please sign in to comment.