添加网速统计功能

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

@@ -76,6 +76,7 @@ public:
* @param key 是否为关键帧第一个包
*/
void onWrite(const TSPacket::Ptr &packet, bool key) override {
_speed += packet->size();
if (!_ring) {
createRing();
}