修复WebRtcProxyPusher速率为0 bug (#4558)

This commit is contained in:
mtdxc
2025-11-22 08:22:42 +08:00
committed by GitHub
parent c9490ad764
commit 70a2140f27
4 changed files with 26 additions and 0 deletions

View File

@@ -165,6 +165,8 @@ public:
void getTransportInfo(const std::function<void(Json::Value)> &callback) const;
size_t getRecvSpeed() const { return _ice_agent ? _ice_agent->getRecvSpeed() : 0; }
size_t getRecvTotalBytes() const { return _ice_agent ? _ice_agent->getRecvTotalBytes() : 0; }
size_t getSendSpeed() const { return _ice_agent ? _ice_agent->getSendSpeed() : 0; }
size_t getSendTotalBytes() const { return _ice_agent ? _ice_agent->getSendTotalBytes() : 0; }
void setOnShutdown(std::function<void(const toolkit::SockException &ex)> cb);