This is comparable to this change done previously for for audio streams: https://webrtc-review.googlesource.com/c/src/+/222042 This is a reland of commit 16a8b25d809e4d4982f9fc4b4e973acd506b8bca with an additional fix in Patchset 2. Another problem turned out to be in RTCPReceiver, which is fixed in: https://webrtc-review.googlesource.com/c/src/+/262663 Bug: webrtc:11993 Change-Id: I63c7cf62a6dd50f88b491fea3ba866697552ef5f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/262665 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36907}