Giter VIP home page Giter VIP logo

Comments (6)

hrueger avatar hrueger commented on September 4, 2024

Sorry for another ping, but it's a great library and it would be very helpful if someone could just post a simple example for creating a display.
As you can tell from #578 there are quite some people who are interested in knowing how to use the library.

from obs-studio-node.

hrueger avatar hrueger commented on September 4, 2024

Thank you!

from obs-studio-node.

aza547 avatar aza547 commented on September 4, 2024

I'm struggling with this also, was there a solution?

from obs-studio-node.

hrueger avatar hrueger commented on September 4, 2024

See here: https://github.com/hrueger/obs-studio-node-docs/blob/main/docs/displays.md

from obs-studio-node.

aza547 avatar aza547 commented on September 4, 2024

Thanks! I've been referencing these docs a lot - thanks for creating them. The bit I was missing was the resize, seems that it never gets drawn on the window without the call to osn.NodeObs.OBS_content_resizeDisplay().

I'm now facing another two problems:

  1. The display is always on-top of the window. I'd like to allow menus / tooltips to overlay it. Any idea if it's possible?
    image

  2. The call to OBS_Content_destroyDisplay to hide the display seems to freeze up my program. I've hacked around it for now with this, but bit nervous about leaving it like that.

    // I'd love to make OBS_content_destroyDisplay work here but I've not managed
    // so far. This is a hack to "hide" it by moving it off screen.
    osn.NodeObs.OBS_content_moveDisplay(this.previewName, 50000, 50000);

from obs-studio-node.

aza547 avatar aza547 commented on September 4, 2024

Seems like 1 is answered here:
#1229

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.