NetObsBindings 0.0.1.38-alpha
See the version list below for details.
dotnet add package NetObsBindings --version 0.0.1.38-alpha
NuGet\Install-Package NetObsBindings -Version 0.0.1.38-alpha
<PackageReference Include="NetObsBindings" Version="0.0.1.38-alpha" />
<PackageVersion Include="NetObsBindings" Version="0.0.1.38-alpha" />
<PackageReference Include="NetObsBindings" />
paket add NetObsBindings --version 0.0.1.38-alpha
#r "nuget: NetObsBindings, 0.0.1.38-alpha"
#:package NetObsBindings@0.0.1.38-alpha
#addin nuget:?package=NetObsBindings&version=0.0.1.38-alpha&prerelease
#tool nuget:?package=NetObsBindings&version=0.0.1.38-alpha&prerelease
NetObsBindings
NetObsBindings is a library that provides .NET bindings for Open Broadcaster Software (OBS).
These bindings are generated from the OBS repository, specifically libobs and obs-frontend projects.
The approach taken is to generate a static class per header file via ClangSharp generator. This means, that, for example, you could find functions exported from the obs-service.h file in the ObsService C# class.
How to use these bindings?
These bindings can be used to create your own plugin in C#. There is one caveat: make sure you are publishing the plugins as NativeAOT libraries, this is essential to make it work due to the plugin model of OBS.
Examples:
- samples folder contains a simple plugin example.
- more comprehensive example - ObsCSharpExample by @YorVeX
Example for an OBS plugin written in C# containing various standard items like output, filter, source or a settings dialog in the OBS Tools menu.
Plugins made using this library:
- xObsBrowserAutoRefresh by @YorVeX
OBS plugin providing a filter for automatically refreshing a browser source in a configurable interval.
How to generate bindings locally?
In order to generate bindings locally, please use the build.ps1 script. Make sure that you have ClangSharpPInvokeGenerator dotnet tool installed.
This script will:
- Clone the OBS repository
- Generate bindings for all required modules
- Insert the version of the OBS library to Obs.Version.cs file.
NB: to change the OBS version - modify the $GitTag variable in the ./init_obs.ps1 script
Originally, these bindings generated in the blog post https://sharovarskyi.com/blog/posts/clangsharp-dotnet-interop-bindings/
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 32.0.0 | 267 | 9/26/2025 |
| 30.1.2 | 354 | 4/11/2024 |
| 30.0.2 | 953 | 12/11/2023 |
| 0.0.1.38-alpha | 286 | 10/8/2023 |
| 0.0.1.37-alpha | 212 | 10/4/2023 |
| 0.0.1.35-alpha | 309 | 5/7/2023 |
| 0.0.1.34-alpha | 284 | 4/17/2023 |
| 0.0.1.33-alpha | 415 | 4/8/2023 |
| 0.0.1.32-alpha | 268 | 3/23/2023 |
| 0.0.1.31-alpha | 279 | 3/12/2023 |
| 0.0.1.30-alpha | 253 | 3/12/2023 |
| 0.0.1.29-alpha | 280 | 2/11/2023 |
| 0.0.1.28-alpha | 262 | 2/11/2023 |
| 0.0.1.27-alpha | 252 | 2/10/2023 |
| 0.0.1.26-alpha | 284 | 2/5/2023 |
| 0.0.1.25-alpha | 280 | 1/31/2023 |
| 0.0.1.24-alpha | 283 | 1/31/2023 |
| 0.0.1.23-alpha | 265 | 1/28/2023 |
| 0.0.1.22-alpha | 310 | 1/22/2023 |
| 0.0.1.21-alpha | 277 | 1/22/2023 |