'WebRTC takes time to match OutboundRTPVideoStream frame height & frame width with RTCInboundRTPVideoStream

Even though the constrains[using MediaStreamTrack.applyConstraints()] are in place, the MediaStreamTrack on receivers end have a lower resolution & it slowly adapts to the actual framesize in 10-20 seconds. Is there any way to match the source & destination video track frame size all the time? Attaching the stat details from webrtc internals.

Stats graphs for RTCInboundRTPVideoStream

Stats graphs for RTCOutboundRTPVideoStream

Ref: https://github.com/w3c/mediacapture-main/issues/647



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source