mirror of
https://github.com/jellyfin/jellyfin-plugin-webhook.git
synced 2025-02-17 05:27:38 +00:00
Add PlayMethod variable (#197)
As requested in https://github.com/jellyfin/jellyfin-plugin-webhook/issues/183 To see if the user is transcoding or not. Returns either "Transcode", "Direct Stream" or "Direct Play".
This commit is contained in:
parent
b78515afd6
commit
51833842b3
@ -273,6 +273,11 @@ public static class DataObjectHelpers
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user