How to select maxFrameHeight (function setReceiverVideoConstraint) for every participant id

I tested some jitsi meet video quality changes, Jitsi has an algorithm for calculating maxFrameHeight depending on the size of the frame when in TitleView mode, When exiting TitleView mode, Jitsi will reset maxFrameHeight to 1080 and select only the video (selectParticipants) of large-video and ignore the id of other users. This seems to be no big deal when laN = -1, but when setting up LastN, some users will experience poor connectivity. But it is impossible to choose other people’s videos too because maxFrameHeight is 1080. If maxFrameHeight is reset, the quality of large-video changes.
So is there a mechanism to set maxFrameHeight for each user?
Thank you!