NetObsBindings 30.1.2
dotnet add package NetObsBindings --version 30.1.2
NuGet\Install-Package NetObsBindings -Version 30.1.2
<PackageReference Include="NetObsBindings" Version="30.1.2" />
paket add NetObsBindings --version 30.1.2
#r "nuget: NetObsBindings, 30.1.2"
// Install NetObsBindings as a Cake Addin #addin nuget:?package=NetObsBindings&version=30.1.2 // Install NetObsBindings as a Cake Tool #tool nuget:?package=NetObsBindings&version=30.1.2
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. Also please update the package version to indicate the OBS version that it is generated from. E.g. 30.0.2.0 means that the bindings were generated from the OBS version 30.0.2.
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. |
-
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 |
---|---|---|
30.1.2 | 161 | 4/11/2024 |
30.0.2 | 501 | 12/11/2023 |
0.0.1.38-alpha | 205 | 10/8/2023 |
0.0.1.37-alpha | 137 | 10/4/2023 |
0.0.1.35-alpha | 174 | 5/7/2023 |
0.0.1.34-alpha | 153 | 4/17/2023 |
0.0.1.33-alpha | 232 | 4/8/2023 |
0.0.1.32-alpha | 138 | 3/23/2023 |
0.0.1.31-alpha | 146 | 3/12/2023 |
0.0.1.30-alpha | 126 | 3/12/2023 |
0.0.1.29-alpha | 152 | 2/11/2023 |
0.0.1.28-alpha | 139 | 2/11/2023 |
0.0.1.27-alpha | 136 | 2/10/2023 |
0.0.1.26-alpha | 155 | 2/5/2023 |
0.0.1.25-alpha | 149 | 1/31/2023 |
0.0.1.24-alpha | 152 | 1/31/2023 |
0.0.1.23-alpha | 141 | 1/28/2023 |
0.0.1.22-alpha | 176 | 1/22/2023 |
0.0.1.21-alpha | 147 | 1/22/2023 |
0.0.1.20-alpha | 149 | 1/22/2023 |
0.0.1.19-alpha | 148 | 1/22/2023 |
0.0.1.18-alpha | 142 | 1/22/2023 |
0.0.1.17-alpha | 142 | 1/16/2023 |
0.0.1.16-alpha | 157 | 1/14/2023 |
0.0.1.15-alpha | 151 | 1/14/2023 |
0.0.1.14-alpha | 210 | 9/18/2022 |
0.0.1-alpha9 | 157 | 7/30/2022 |
0.0.1-alpha8 | 167 | 7/30/2022 |
0.0.1-alpha7 | 186 | 2/20/2022 |
0.0.1-alpha6 | 183 | 2/20/2022 |
0.0.1-alpha5 | 193 | 2/20/2022 |
0.0.1-alpha4 | 196 | 2/20/2022 |
0.0.1-alpha3 | 184 | 2/20/2022 |
0.0.1-alpha2 | 191 | 2/20/2022 |
0.0.1-alpha13 | 156 | 7/30/2022 |
0.0.1-alpha12 | 162 | 7/30/2022 |
0.0.1-alpha11 | 164 | 7/30/2022 |
0.0.1-alpha10 | 176 | 7/30/2022 |
0.0.1-alpha1 | 189 | 2/20/2022 |
0.0.1-alpha | 198 | 2/20/2022 |