Giter Club home page Giter Club logo

Comments (7)

Envek avatar Envek commented on July 3, 2024 3

We, together with @emptycrown, have built minimal example application that uses obs-studio-node to record screen capture:

https://github.com/Envek/obs-studio-node-example

I tried to keep the code as simple and straightforward as possible to have only essential things there.

from obs-studio-node.

JonathanTreffler avatar JonathanTreffler commented on July 3, 2024 2

First of all you need to build this into a nodejs package by following the instructions

This is where the package exposes it's c++ code to the js api:
https://github.com/stream-labs/obs-studio-node/blob/staging/js/module.ts
So every Object defined there will be acessible in your js code, if you import the module.
It might be helpful to look at the test code in /tests/.
(I cannot guarantee that my information here are correct, because i never used obs-studio-node. I am just assuming based on the code)

from obs-studio-node.

hrueger avatar hrueger commented on July 3, 2024

Just a little example how to create a stream out of two sources and preview it and I'd be happy to create a pull request with a more detailed documentation after I've figured that out.
But I'd need a starting point...

from obs-studio-node.

emptycrown avatar emptycrown commented on July 3, 2024

@hrueger Did you ever get an example app working with node? Would love to see a simple example if possible -- thanks a bunch! Even just seeing the basic layout could save me a lot of time.

from obs-studio-node.

hrueger avatar hrueger commented on July 3, 2024

@emptycrown No, unfortunately, I couldn't. I'm working on using obs-websocket-js to control obs. If you can make it work with obs-studio-node, I'd love to see that!

from obs-studio-node.

EddyGharbi avatar EddyGharbi commented on July 3, 2024

Thanks for doing that, it looks very good. If you decide to share this tutorial through the official repository, it would be a pleasure for me to look at it.

from obs-studio-node.

hrueger avatar hrueger commented on July 3, 2024

I'm working on this. Can I move the building instructions into BUILDING.md and put the docs in the README.md? Or do you prefer a DOCS.md?

from obs-studio-node.

Related Issues (20)

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.