mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 11:38:11 +08:00
添加网速统计功能
This commit is contained in:
@@ -76,6 +76,7 @@ public:
|
||||
* @param key 是否为关键帧第一个包
|
||||
*/
|
||||
void onWrite(const TSPacket::Ptr &packet, bool key) override {
|
||||
_speed += packet->size();
|
||||
if (!_ring) {
|
||||
createRing();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user