This is a remote desktop application via Chrome where the user shares their screen. The problem I am having is when the user has 2 or more screens, WebRTC only gets the first display's resolution. I can see this by logging localStream.getVideoTracks()[0].getSettings():
aspectRatio: 1.7777777777777777Both screens end up streaming in one connection (getVideoTracks()[1] does not exist), but it only shows as one screen. The width should be 1920 * 2 screens at 3840.
My constraints and getting media are set as:
let mediaConstraints = {I noticed crop-and-scale was set instead of none, and thought that might be causing a problem but I can't seem to get it to set for this kind of constraint. aspectRatio did nothing as well. Setting resizeMode within mandatory throws an error. Where am I going wrong here?