Git Product home page Git Product logo

slobsharp's Introduction

SLOBSharp

A .NET Standard Client library used to integrate with StreamLabs OBS

Build Release Code Coverage
Build status Build status NuGet NuGet codecov

Current API Support

Currently, this project only supports using named pipes for StreamLabs OBS. WebSocket support may be added at a later date.

Simple Example

/* 
 * 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();

slobsharp's People

Contributors

stephenmp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rei0xe hopla

slobsharp's Issues

Get All Items from every Scene?

Hey there,

so first of all, awesome Project. But im asking myself now for a while how will i get all Items used in ALL Scenes?
I can get a selected Item thats all...
There is a Method called "getItems" in the Resource "SelectionService".
But this only returns the selected Item(s).
So what im searching for are all Items from all Scenes.

Pipe hasn't been connected yet.

Hello, I'm having an issue with issuing rpc requests - I can connect using the web-interface provided by stream labs but everytime I try to issue a request I get "InvalidOperationException: Pipe hasn't been connected yet."

What do I need to do? :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.