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

refine the pithy print mechenism.

This commit is contained in:
winlin 2015-07-09 15:39:02 +08:00
parent bed540bac9
commit 404bc565a1

View file

@ -55,11 +55,14 @@ public:
}; };
/** /**
* the stage is used for a collection of object to do print, * the stage is used for a collection of object to do print,
* the print time in a stage is constant and not changed. * the print time in a stage is constant and not changed,
* for example, stage #1 for all play clients, print time is 3s, * that is, we always got one message to print every specified time.
* if there is 10clients, then all clients should print in 10*3s. *
* Usage: * for example, stage #1 for all play clients, print time is 3s,
* if there is 1client, it will print every 3s.
* if there is 10clients, random select one to print every 3s.
* Usage:
SrsPithyPrint* pprint = SrsPithyPrint::create_rtmp_play(); SrsPithyPrint* pprint = SrsPithyPrint::create_rtmp_play();
SrsAutoFree(SrsPithyPrint, pprint); SrsAutoFree(SrsPithyPrint, pprint);
while (true) { while (true) {
@ -70,7 +73,7 @@ public:
} }
// read and write RTMP messages. // read and write RTMP messages.
} }
*/ */
class SrsPithyPrint class SrsPithyPrint
{ {
private: private: