Bug 1641600 - Remove check that bytesSent >= packetsSent in pc.js; r=ng

With RTX and transport-cc enabled, it is possible to send padding packets prior
to any media being sent (see comments in RTPSender::SendPadData). But padding
bytes are counted separate from payload bytes and so do not show up in
bytesSent, which means that is possible that we've sent packets, but not bytes,
as far as the stats are concerned. This leads to frequent intermittent failures
while running tests on Android hardware.

Depends on D77815

Differential Revision: https://phabricator.services.mozilla.com/D78287
This commit is contained in:
Dan Minor 2020-06-05 12:10:59 +00:00
Родитель 7e4f4a65d2
Коммит 3d136c71fc
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -2165,8 +2165,7 @@ PeerConnectionWrapper.prototype = {
} else {
ok(rem.type == "remote-outbound-rtp", "Rtcp is outbound");
ok(rem.packetsSent !== undefined, "Rtcp packetsSent");
// We may have received more than outdated Rtcp packetsSent
ok(rem.bytesSent >= rem.packetsSent, "Rtcp bytesSent");
ok(rem.bytesSent !== undefined, "Rtcp bytesSent");
}
ok(rem.ssrc == res.ssrc, "Remote ssrc match");
} else {