mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 03:28:09 +08:00
添加网速统计功能
This commit is contained in:
@@ -79,6 +79,10 @@ public:
|
||||
_list_cb.emplace_back(std::move(cb));
|
||||
}
|
||||
|
||||
void onSegmentSize(uint64_t bytes) {
|
||||
_speed += bytes;
|
||||
}
|
||||
|
||||
private:
|
||||
bool _is_regist = false;
|
||||
RingType::Ptr _ring;
|
||||
|
||||
Reference in New Issue
Block a user