正在显示
1 个修改的文件
包含
9 行增加
和
6 行删除
| @@ -55,11 +55,14 @@ public: | @@ -55,11 +55,14 @@ public: | ||
| 55 | }; | 55 | }; |
| 56 | 56 | ||
| 57 | /** | 57 | /** |
| 58 | -* the stage is used for a collection of object to do print, | ||
| 59 | -* the print time in a stage is constant and not changed. | ||
| 60 | -* for example, stage #1 for all play clients, print time is 3s, | ||
| 61 | -* if there is 10clients, then all clients should print in 10*3s. | ||
| 62 | -* Usage: | 58 | + * the stage is used for a collection of object to do print, |
| 59 | + * the print time in a stage is constant and not changed, | ||
| 60 | + * that is, we always got one message to print every specified time. | ||
| 61 | + * | ||
| 62 | + * for example, stage #1 for all play clients, print time is 3s, | ||
| 63 | + * if there is 1client, it will print every 3s. | ||
| 64 | + * if there is 10clients, random select one to print every 3s. | ||
| 65 | + * Usage: | ||
| 63 | SrsPithyPrint* pprint = SrsPithyPrint::create_rtmp_play(); | 66 | SrsPithyPrint* pprint = SrsPithyPrint::create_rtmp_play(); |
| 64 | SrsAutoFree(SrsPithyPrint, pprint); | 67 | SrsAutoFree(SrsPithyPrint, pprint); |
| 65 | while (true) { | 68 | while (true) { |
| @@ -70,7 +73,7 @@ public: | @@ -70,7 +73,7 @@ public: | ||
| 70 | } | 73 | } |
| 71 | // read and write RTMP messages. | 74 | // read and write RTMP messages. |
| 72 | } | 75 | } |
| 73 | -*/ | 76 | + */ |
| 74 | class SrsPithyPrint | 77 | class SrsPithyPrint |
| 75 | { | 78 | { |
| 76 | private: | 79 | private: |
-
请 注册 或 登录 后发表评论