nack/rtx支持多次重传,提高抗丢包率

This commit is contained in:
ziyue
2021-07-27 20:37:43 +08:00
parent 3840ff2a3f
commit c59a7a04c3
7 changed files with 206 additions and 40 deletions

View File

@@ -194,9 +194,13 @@ vector<bool> FCI_NACK::getBitArray() const {
string FCI_NACK::dumpString() const {
_StrPrinter printer;
printer << "pid:" << getPid() << ",blp:" << getBlp() << ",bit array:";
auto pid = getPid();
printer << "pid:" << pid << ",blp:" << getBlp() << ",dropped rtp seq:";
for (auto flag : getBitArray()) {
printer << flag << " ";
if (flag) {
printer << pid << " ";
}
++pid;
}
return std::move(printer);
}