mediasoup-demo issue after lag the connection

Sorry, that report is wrong. You are looking at the original video resolution which is not what the sender really sends but the resolution of the local video track. The PeerConnection encoder can decrease its quality (frame rate and resolution) due to poor uplink conditions, but you still see 1280x720 in the local peer video. That means absolutely nothing, it’s just the local video track resolution, nothing else.

You should learn about the spatial and temporal layers and check then in the consumer side instead of looking at the video resolution:

The consumer bandwidth restore will be improved once we implement a new RTP probator: