mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #307, drop frame when VBR too high
This commit is contained in:
parent
606f8873b3
commit
14e3ec2fe8
10 changed files with 105 additions and 8 deletions
|
@ -175,6 +175,7 @@ private:
|
|||
SrsStatisticCategory* perf_rtp;
|
||||
SrsStatisticCategory* perf_rtc;
|
||||
SrsStatisticCategory* perf_bytes;
|
||||
SrsStatisticCategory* perf_dropped;
|
||||
private:
|
||||
SrsStatistic();
|
||||
virtual ~SrsStatistic();
|
||||
|
@ -264,6 +265,10 @@ public:
|
|||
// Stat for bytes, nn_bytes is the size of bytes, nb_padding is padding bytes.
|
||||
virtual void perf_on_rtc_bytes(int nn_bytes, int nn_padding);
|
||||
virtual srs_error_t dumps_perf_bytes(SrsJsonObject* obj);
|
||||
public:
|
||||
// Stat for rtc messages, nn_rtc is rtc messages, nn_dropped is dropped messages.
|
||||
virtual void perf_on_dropped(int nn_msgs, int nn_rtc, int nn_dropped);
|
||||
virtual srs_error_t dumps_perf_dropped(SrsJsonObject* obj);
|
||||
public:
|
||||
// Reset all perf stat data.
|
||||
virtual void reset_perf();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue