流量统计添加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

@@ -56,10 +56,12 @@ void RtmpSession::onError(const SockException& err) {
GET_CONFIG_AND_REGISTER(uint32_t,iFlowThreshold,Broadcast::kFlowThreshold);
if(_ui64TotalBytes > iFlowThreshold * 1024){
bool isPlayer = !_pPublisherSrc;
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport,
_mediaInfo,
_ui64TotalBytes,
_ticker.createdTime()/1000,
isPlayer,
*this);
}
}