Closed berkon closed 3 years ago
Just found the solution:
// Way to update settings if needed:
let settings = obsCameraInput.settings;
console.debug('Camera settings:', obsCameraInput.settings);
settings['res_type'] = 1
settings['resolution'] = "1920x1080",
obsCameraInput.update(settings);
obsCameraInput.save();
Unfortunately obs-studio-node is not documented very well.
That's why we've created this example, after all.
Thank you for sharing the solution! I've added it to README
I'v removed the comments in the corresponding section in obsRecorder.js, and set the resolution to 1920x1080, but the webcam still shows 640x480. Also setting width and height in
InputFactory.create(...)
does not seem to change anything.BTW: Thanks for this great example @Envek. This helped me a lot. Unfortunately obs-studio-node is not documented very well.