mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Update nack stat
This commit is contained in:
parent
5f7de58095
commit
b3212a12de
3 changed files with 14 additions and 0 deletions
|
@ -1769,6 +1769,13 @@ srs_error_t SrsRtcSendTrack::on_rtcp(SrsRtpPacket2* pkt)
|
|||
return srs_success;
|
||||
}
|
||||
|
||||
void SrsRtcSendTrack::on_recv_nack()
|
||||
{
|
||||
SrsRtcTrackStatistic* statistic = statistic_;
|
||||
|
||||
statistic->nacks++;
|
||||
}
|
||||
|
||||
SrsRtcAudioSendTrack::SrsRtcAudioSendTrack(SrsRtcConnection* session, SrsRtcTrackDescription* track_desc)
|
||||
: SrsRtcSendTrack(session, track_desc, true)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue