Official .NET library (written in C#) to communicate with an obs-websocket server.
This library is available on the NuGet gallery
See the TestClient project for a working example.
Supported target frameworks: netstandard2.1 and net10.0.
Brings the library up to date with the obs-websocket 5.7.0 protocol, and adds first-class .NET 10 support.
- .NET 10 support — the package now multi-targets
netstandard2.1andnet10.0; existing consumers on older TFMs are unaffected, .NET 10 apps get a first-party asset. Tests andTestClientwere retargeted from net9 to net10 - Event subscriptions — control which events you receive via
EventSubscriptions, including the four high-volume events (InputVolumeMeters,InputActiveStateChanged,InputShowStateChanged,SceneItemTransformChanged) which now require explicit opt-in - 8 new events:
CustomEvent,InputSettingsChanged,SourceFilterSettingsChanged,RecordFileChanged,ScreenshotSaved,CanvasCreated,CanvasRemoved,CanvasNameChanged - 17 new requests:
- Outputs (generic, works on any output by name):
GetOutputList,GetOutputStatus,ToggleOutput,StartOutput,StopOutput,GetOutputSettings,SetOutputSettings - Recording:
SetRecordDirectory,SplitRecordFile,CreateRecordChapter - Inputs:
GetInputDeinterlaceMode,SetInputDeinterlaceMode,GetInputDeinterlaceFieldOrder,SetInputDeinterlaceFieldOrder(eachSet*also has a convenience overload taking a typed enum) - Other:
GetSourceFilterKindList,GetSceneItemSource,GetCanvasList
- Outputs (generic, works on any output by name):
- Fixed:
GetInputAudioTracksalways returnedfalsefor every track (the response'sinputAudioTracksfield wasn't being unwrapped before deserializing) OpenSourceProjectorandOpenVideoMixProjectorare now declared onIOBSWebsocket(they were missing)- Greatly expanded test suite: request/response round-trip coverage plus conformance gates that fail the build if the library drifts from the protocol spec again
- Fixes for deserialization issues in MediaInputStatus
- Allow OBSVideoSettings to be updated via the API
- New ILogger support instead of writing to console
- New UnsupportedEvent event
- Updated to netstandard 2.1
Please report issues/bugs via the Issues Tracker or discuss in our Discord
Discord: Discuss in #developers-chat in Bar Raiders
NOTE: We will no longer be updating the v4.x branch as we move towards v5.0 (which is NOT backwards compatible).