Disabling camera results in enormous padding packets traffic

59 views
Skip to first unread message

Michal Śledź

unread,
Mar 2, 2023, 9:27:30 AM3/2/23
to discuss-webrtc
Hi,
we are exploring possible ways of disabling video camera and we are noticing pretty weird behavior.

When we disable simulcast track by replacing it with null (replaceTrack(null)), the browser starts sending enormous number of padding packets on the highest encoding. It basically tries to keep 1.5Mbps bitrate (that's our max bitrate for the "high" layer) which results in ~600packets/s. For layers "low" and "medium", number of packets is almost equal to 0. 

When we disable normal track by replacing it with null, the behavior is much different as we don't send any padding packets. We send exactly 1 packet/s.  


When we disable simulcast track with the official API (via setting enabled property to false), the situation is similar but not the same as when we call replaceTrack(null). The browser generates ~600packets/s (~1.5Mbps) for high encoding but about 15 packet/s for medium and 15 packets/s for low.

When we disable normal track with the official API, the browser sends ~15packets/s.


Isn't this a bug? I would expect that when I disable track with the official API, the browser won't generate 1.5Mbps using padding packets. The same for replaceTrack(null).

I included sample plots where you can see that we send 600packet/s but only 1.5kbps of media as padding packets are not included in bytes_in_bits/s
disable_cam.png

Philipp Hancke

unread,
Mar 2, 2023, 9:51:03 AM3/2/23
to discuss...@googlegroups.com

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/4b6f5a39-f69c-4def-8d1a-4419a01a7296n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages