1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Extract NACK handler from stream to track.

This commit is contained in:
winlin 2021-01-19 17:05:40 +08:00
parent 40ea0b67f9
commit b373400257
4 changed files with 57 additions and 71 deletions

View file

@ -582,7 +582,7 @@ public:
public:
virtual srs_error_t on_rtp(SrsRtpPacket2* pkt, SrsRtcPlayStreamStatistic& info) = 0;
virtual srs_error_t on_rtcp(SrsRtpPacket2* pkt) = 0;
virtual void on_recv_nack();
virtual srs_error_t on_recv_nack(const std::vector<uint16_t>& lost_seqs, SrsRtcPlayStreamStatistic& info);
};
class SrsRtcAudioSendTrack : public SrsRtcSendTrack