From 7517c6f0982b23432536f810df51beefea48c47b Mon Sep 17 00:00:00 2001 From: BtbN Date: Tue, 22 Nov 2022 21:20:34 +0100 Subject: [PATCH] Fix MediaInputPlaybackStarted inputName parsing Field must have been forgotten in update: https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#media-inputs-events --- obs-websocket-dotnet/Events.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obs-websocket-dotnet/Events.cs b/obs-websocket-dotnet/Events.cs index 4a3504f..8ea18d8 100644 --- a/obs-websocket-dotnet/Events.cs +++ b/obs-websocket-dotnet/Events.cs @@ -444,7 +444,7 @@ protected void ProcessEventType(string eventType, JObject body) break; case nameof(MediaInputPlaybackStarted): - MediaInputPlaybackStarted?.Invoke(this, new MediaInputPlaybackStartedEventArgs((string)body["sourceName"])); + MediaInputPlaybackStarted?.Invoke(this, new MediaInputPlaybackStartedEventArgs((string)body["inputName"])); break; case nameof(MediaInputActionTriggered): @@ -529,4 +529,4 @@ protected void ProcessEventType(string eventType, JObject body) #endregion } -} \ No newline at end of file +}