Reduce android screen share video quality


We are using self built jitsi-meet mobile sdk in our app and lately we enabled the share screen functionality for android. But unfortunately we noticed that the video of the screen share is too laggy especially when sharing big screens like tablets.
At first I tried to modify this line:

to pass resolution and constraints object or desktopSharingFrameRate to JitsiMeetJS.createLocalTracks function, but found out that these are not taken into account when creating the screen share track.
Is there any other way that we can approach in order to reduce the quality of the android screen share track?