A .NET Standard Client library used to integrate with StreamLabs OBS
Build | Release | Code Coverage |
---|---|---|
Currently, this project only supports using named pipes for StreamLabs OBS. WebSocket support may be added at a later date.
/*
* This example will get the currently active scene in SLOBS
* Make sure you have SLOBS running and that you've enabled named pipes before trying
* See https://github.com/stream-labs/streamlabs-obs-api-docs#how-to-connect-web-application-to-streamlabs-obs
* on how to enable named pipes in SLOBS
*/
// Constructor takes the name of the pipe (default constructor uses the pipe name "slobs")
var client = new SlobsPipeClient("slobs");
// Build our request
var slobsRequest = SlobsRequestBuilder.NewRequest().SetMethod("activeScene").SetResource("ScenesService").BuildRequest();
// Issue the request
var slobsRpcResponse = await this.slobsClient.ExecuteRequestAsync(request).ConfigureAwait(false);
// Get the result
var activeScene = slobsRpcResponse.Result.FirstOrDefault();