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

RTC: Support drop for specified PT

This commit is contained in:
winlin 2020-06-29 10:59:39 +08:00
parent b9bd12192b
commit 3510c74cd4
5 changed files with 46 additions and 13 deletions

View file

@ -251,6 +251,9 @@ private:
SrsRtcSession* session_;
uint32_t video_ssrc;
uint32_t audio_ssrc;
uint16_t pt_to_drop_;
// Whether enabled nack.
bool nack_enabled_;
private:
bool request_keyframe_;
SrsRtpRingBuffer* video_queue_;
@ -260,8 +263,6 @@ private:
private:
SrsRequest* req;
SrsRtcSource* source;
// Whether enabled nack.
bool nack_enabled_;
// Simulators.
int nn_simulate_nack_drop;
private: