mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 19:58:10 +08:00
添加网速统计功能
This commit is contained in:
@@ -119,6 +119,7 @@ public:
|
||||
* @param pkt rtmp包
|
||||
*/
|
||||
void onWrite(const RtmpPacket::Ptr &pkt, bool = true) override {
|
||||
_speed += pkt->size();
|
||||
//保存当前时间戳
|
||||
switch (pkt->type_id) {
|
||||
case MSG_VIDEO : _track_stamps[TrackVideo] = pkt->time_stamp, _have_video = true; break;
|
||||
|
||||
Reference in New Issue
Block a user