Hi,
with the help of this repository, I was able to get the basic setup with electron working.
However, for now just adding scenes, sources and recording works. I'd like to add a output display.
In streamlabs-obs I found this code: https://github.com/stream-labs/streamlabs-obs/blob/e707f9819a10296893f4d3e058d12110c1ec44a7/app/services/video.ts#L254-L275
So I have the following code:
const osn = require("obs-studio-node");
// do all the initialization stuff, like here: https://github.com/Envek/obs-studio-node-example/blob/a099849c5e053cced4cfb23f9a250f95e5c7967f/obsRecorder.js#L10-L64
const t = new BrowserWindow({
height: 300,
width: 400,
webPreferences: {
nodeIntegration: true,
}
});
osn.NodeObs.OBS_content_createDisplay(
t.getNativeWindowHandle(),
"test",
1,
);
But it just gives me the normal BrowserWindow.
Rendering mode can be 0, 1 or 2 as defined here but it doesn't work with any of them.
What am I missing or doing wrong?
Hi,
with the help of this repository, I was able to get the basic setup with electron working.
However, for now just adding scenes, sources and recording works. I'd like to add a output display.
In
streamlabs-obsI found this code: https://github.com/stream-labs/streamlabs-obs/blob/e707f9819a10296893f4d3e058d12110c1ec44a7/app/services/video.ts#L254-L275So I have the following code:
But it just gives me the normal
BrowserWindow.Rendering mode can be 0, 1 or 2 as defined here but it doesn't work with any of them.
What am I missing or doing wrong?