Skip to content
Projects

BarRaider/obs-websocket-dotnet

View on GitHub

About

C# .NET library to communicate with an obs-websocket server

Web & App Development

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

obs-websocket-dotnet

Build status  Releases: NuGet

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.

New in v5.7.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.1 and net10.0; existing consumers on older TFMs are unaffected, .NET 10 apps get a first-party asset. Tests and TestClient were 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 (each Set* also has a convenience overload taking a typed enum)
    • Other: GetSourceFilterKindList, GetSceneItemSource, GetCanvasList
  • Fixed: GetInputAudioTracks always returned false for every track (the response's inputAudioTracks field wasn't being unwrapped before deserializing)
  • OpenSourceProjector and OpenVideoMixProjector are now declared on IOBSWebsocket (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

New in v5.0.1

  • 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

Dev Discussions

Discord: Discuss in #developers-chat in Bar Raiders

EOL for v4.x branch

NOTE: We will no longer be updating the v4.x branch as we move towards v5.0 (which is NOT backwards compatible).

Explore related projects

Loading…