mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
完善日志
This commit is contained in:
parent
87e1209d0a
commit
fb9eefca69
@ -295,22 +295,22 @@ void WebRtcTransportImp::onDestory() {
|
|||||||
GET_CONFIG(uint32_t, iFlowThreshold, General::kFlowThreshold);
|
GET_CONFIG(uint32_t, iFlowThreshold, General::kFlowThreshold);
|
||||||
|
|
||||||
if (_play_src) {
|
if (_play_src) {
|
||||||
WarnP(_socket) << "RTC播放器("
|
WarnL << "RTC播放器("
|
||||||
<< _media_info._vhost << "/"
|
<< _media_info._vhost << "/"
|
||||||
<< _media_info._app << "/"
|
<< _media_info._app << "/"
|
||||||
<< _media_info._streamid
|
<< _media_info._streamid
|
||||||
<< ")结束播放,耗时(s):" << duration;
|
<< ")结束播放,耗时(s):" << duration;
|
||||||
if (_bytes_usage >= iFlowThreshold * 1024) {
|
if (_bytes_usage >= iFlowThreshold * 1024) {
|
||||||
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _media_info, _bytes_usage, duration, true, static_cast<SockInfo &>(*_socket));
|
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _media_info, _bytes_usage, duration, true, static_cast<SockInfo &>(*_socket));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_push_src) {
|
if (_push_src) {
|
||||||
WarnP(_socket) << "RTC推流器("
|
WarnL << "RTC推流器("
|
||||||
<< _media_info._vhost << "/"
|
<< _media_info._vhost << "/"
|
||||||
<< _media_info._app << "/"
|
<< _media_info._app << "/"
|
||||||
<< _media_info._streamid
|
<< _media_info._streamid
|
||||||
<< ")结束推流,耗时(s):" << duration;
|
<< ")结束推流,耗时(s):" << duration;
|
||||||
if (_bytes_usage >= iFlowThreshold * 1024) {
|
if (_bytes_usage >= iFlowThreshold * 1024) {
|
||||||
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _media_info, _bytes_usage, duration, false, static_cast<SockInfo &>(*_socket));
|
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastFlowReport, _media_info, _bytes_usage, duration, false, static_cast<SockInfo &>(*_socket));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user