流量统计添加isPlayer参数

This commit is contained in:
xiongziliang
2019-05-20 17:46:06 +08:00
parent f9f487bf61
commit fbead02868
5 changed files with 7 additions and 1 deletions

View File

@@ -99,10 +99,12 @@ void RtspSession::onError(const SockException& err) {
//流量统计事件广播
GET_CONFIG_AND_REGISTER(uint32_t,iFlowThreshold,Broadcast::kFlowThreshold);
if(_ui64TotalBytes > iFlowThreshold * 1024){
bool isPlayer = !_pushSrc;
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport,
_mediaInfo,
_ui64TotalBytes,
_ticker.createdTime()/1000,
isPlayer,
*this);
}