mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Detect whether flash enabled for srs-bwt.
This commit is contained in:
parent
c830dc6700
commit
cef7ec79b3
4 changed files with 123 additions and 68 deletions
|
@ -40,14 +40,14 @@ class ISrsProtocolStatistic;
|
|||
class SrsBandwidthSample
|
||||
{
|
||||
public:
|
||||
// The plan, how long to do the test, in ms,
|
||||
// The plan, how long to do the test,
|
||||
// if exceed the duration, abort the test.
|
||||
int duration_ms;
|
||||
// The plan, interval for each check/test packet, in ms
|
||||
int interval_ms;
|
||||
srs_utime_t duration;
|
||||
// The plan, interval for each check/test packet
|
||||
srs_utime_t interval;
|
||||
public:
|
||||
// The actual test duration, in ms.
|
||||
int actual_duration_ms;
|
||||
// The actual test duration.
|
||||
srs_utime_t actual_duration;
|
||||
// The actual test bytes
|
||||
int bytes;
|
||||
// The actual test kbps
|
||||
|
@ -58,8 +58,8 @@ public:
|
|||
public:
|
||||
// Update the bytes and actual duration, then calc the kbps.
|
||||
// @param _bytes update the sample bytes.
|
||||
// @param _duration update the actual duration, in ms.
|
||||
virtual void calc_kbps(int _bytes, int _duration);
|
||||
// @param _duration update the actual duration.
|
||||
virtual void calc_kbps(int _bytes, srs_utime_t _duration);
|
||||
};
|
||||
|
||||
// The bandwidth test agent which provides the interfaces for bandwidth check.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue