How can control stream of screen sharing?

Now I am using jitsi-meet-electron for jitsi-meeting in my electron desktop app. And using jitis-meet-electron-utils as well.
I want to control the stream of screen sharing in my app, and then I would like to monitor the position and size of captured window, too.
How can I do it?