Envek / obs-studio-node-example

Learn how to use OBS Studio from your Electron app for screen video recording
GNU General Public License v2.0
104 stars 19 forks source link

Gets the true monitor resolution of the input source for multi-monitor setups #16

Open emptycrown opened 4 years ago

emptycrown commented 4 years ago

Something like this is needed to actually use the true monitor resolution to scale a scene. When there is only one monitor, this doesn't matter much since Electron's getPrimaryDisplay() will handle that.

However, in multi-monitor setups, Electron's displays are not helpful. To get the resolution dimensions, we must wait until after the source is added and then scale the scene accordingly.

Solves #15