正在显示
1 个修改的文件
包含
19 行增加
和
16 行删除
@@ -55,22 +55,25 @@ public: | @@ -55,22 +55,25 @@ 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: | ||
63 | - SrsPithyPrint* pprint = SrsPithyPrint::create_rtmp_play(); | ||
64 | - SrsAutoFree(SrsPithyPrint, pprint); | ||
65 | - while (true) { | ||
66 | - pprint->elapse(); | ||
67 | - if (pprint->can_print()) { | ||
68 | - // print pithy message. | ||
69 | - // user can get the elapse time by: pprint->age() | ||
70 | - } | ||
71 | - // read and write RTMP messages. | ||
72 | - } | ||
73 | -*/ | 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: | ||
66 | + SrsPithyPrint* pprint = SrsPithyPrint::create_rtmp_play(); | ||
67 | + SrsAutoFree(SrsPithyPrint, pprint); | ||
68 | + while (true) { | ||
69 | + pprint->elapse(); | ||
70 | + if (pprint->can_print()) { | ||
71 | + // print pithy message. | ||
72 | + // user can get the elapse time by: pprint->age() | ||
73 | + } | ||
74 | + // read and write RTMP messages. | ||
75 | + } | ||
76 | + */ | ||
74 | class SrsPithyPrint | 77 | class SrsPithyPrint |
75 | { | 78 | { |
76 | private: | 79 | private: |
-
请 注册 或 登录 后发表评论