暂时屏蔽一些日志

This commit is contained in:
xiongziliang 2021-04-07 21:02:28 +08:00
parent 1650f63af5
commit b2afae0e8a
2 changed files with 7 additions and 3 deletions

View File

@ -133,6 +133,11 @@ void RtcpHeader::net2Host(size_t len){
bye->net2Host(len); bye->net2Host(len);
break; break;
} }
case RtcpType::RTCP_RTPFB: {
//todo 支持rtcp-fb相关功能
break;
}
default: throw std::runtime_error(StrPrinter << "未处理的rtcp包:" << rtcpTypeToStr((RtcpType) this->pt)); default: throw std::runtime_error(StrPrinter << "未处理的rtcp包:" << rtcpTypeToStr((RtcpType) this->pt));
} }
} }

View File

@ -533,7 +533,7 @@ void WebRtcTransportImp::onRtcp(const char *buf, size_t len) {
break; break;
} }
case RtcpType::RTCP_PSFB: { case RtcpType::RTCP_PSFB: {
// InfoL << rtcp->dumpString(); //todo 支持pli等更多类型的rtcp
break; break;
} }
default: break; default: break;
@ -561,11 +561,10 @@ void WebRtcTransportImp::onRtp(const char *buf, size_t len) {
void WebRtcTransportImp::onSortedRtp(const RtpPayloadInfo &info, RtpPacket::Ptr rtp) { void WebRtcTransportImp::onSortedRtp(const RtpPayloadInfo &info, RtpPacket::Ptr rtp) {
if(!info.is_common_rtp){ if(!info.is_common_rtp){
//todo rtx/red/ulpfec类型的rtp先未处理 //todo rtx/red/ulpfec类型的rtp先未处理
WarnL;
return; return;
} }
if (_pli_ticker.elapsedTime() > 2000) { if (_pli_ticker.elapsedTime() > 2000) {
//todo 定期发送pli //定期发送pli请求关键帧方便非rtc等协议
_pli_ticker.resetTime(); _pli_ticker.resetTime();
auto pli = RtcpPli::create(); auto pli = RtcpPli::create();
pli->ssrc = htonl(0); pli->ssrc = htonl(0);