stream-labs / obs-studio-node

libOBS (OBS Studio) for Node.Js, Electron and similar tools
GNU General Public License v2.0
614 stars 99 forks source link

Apply settings back to created source after requesting properties from FE #1385

Closed summeroff closed 9 months ago

summeroff commented 9 months ago

Description

Apply settings back to created source when properties get requested.

Motivation and Context

Current implementation of utility::ProcessProperties does not change updateSource flag. It leads to missed settings update.

Some values for properties gets populated only inside obs_source_properties. Like the list of displays. And without update source will use non working default values.

How Has This Been Tested?

Types of changes

Checklist:

rosendolu commented 5 months ago

Hi @avoitenko-logitech @summeroff is there a way to update source settings after created? I try to update settings fileds but not work. sceneItem position works well img_v3_02ak_d09dd497-c628-42c5-a09a-10acd52415dg

Even if called the update methods sceneItem.source.update(sceneItem.source.settings)