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

Add alone pithy print

This commit is contained in:
winlin 2021-04-27 17:05:26 +08:00
parent e67207f4b1
commit c2229d392a
2 changed files with 38 additions and 0 deletions

View file

@ -89,6 +89,20 @@ public:
bool can_print(int err, uint32_t* pnn = NULL);
};
// An standalone pithy print, without shared stages.
class SrsAlonePithyPrint
{
private:
SrsStageInfo info_;
srs_utime_t previous_tick_;
public:
SrsAlonePithyPrint();
virtual ~SrsAlonePithyPrint();
public:
virtual void elapse();
virtual bool can_print();
};
// The stage is used for a collection of object to do print,
// the print time in a stage is constant and not changed,
// that is, we always got one message to print every specified time.