What i'm basically creating is an electron program that loops a video containing adverts. The video spans the entire window.
I have a second, smaller window used to configure things about the video window in real time and one of those things is being able to add a message overlayed on the video. Here's an image to show you what I mean: https://i.imgur.com/9SneVOT.png
The blue rectangle on the smaller video in the foreground can be dragged around and represents a message that will be displayed over the video. If I save the coordinates of that rectangle and create an element on the main video in the background the coordinates don't match up due to the different sizes of the windows, so how do I take those coordinates and make them work for the bigger window?