添加网速统计功能

This commit is contained in:
xiongziliang
2020-10-01 11:02:00 +08:00
parent bae52db6ba
commit 7f3877e437
9 changed files with 68 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ public:
if (key) {
_have_video = true;
}
_speed += packet->size();
PacketCache<FMP4Packet, FMP4FlushPolicy>::inputPacket(true, packet, key);
}