winlin

add bandwidth workflow

正在显示 1 个修改的文件 包含 15 行增加17 行删除
@@ -137,28 +137,26 @@ Bandwidth Test Workflow: @@ -137,28 +137,26 @@ Bandwidth Test Workflow:
137 | Client | | Server | 137 | Client | | Server |
138 +-----+------+ +-----+----+ 138 +-----+------+ +-----+----+
139 | | 139 | |
140 - | connect vhost------> | if vhost enable bandwidth,  
141 - | <-----result(success) | do bandwidth check. 140 + | connect vhost------> |
  141 + | <-----result(success) |
142 | | 142 | |
143 - | <----call(start play) | onSrsBandCheckStartPlayBytes  
144 - | result(playing)-----> | onSrsBandCheckStartingPlayBytes  
145 - | <-------data(playing) | onSrsBandCheckStartingPlayBytes  
146 - | <-----call(stop play) | onSrsBandCheckStopPlayBytes  
147 - | result(stopped)-----> | onSrsBandCheckStoppedPlayBytes 143 + | <----call(start play) |
  144 + | result(playing)-----> |
  145 + | <-------data(playing) |
  146 + | <-----call(stop play) |
  147 + | result(stopped)-----> |
148 | | 148 | |
149 - | <-call(start publish) | onSrsBandCheckStartPublishBytes  
150 - | result(publishing)--> | onSrsBandCheckStartingPublishBytes  
151 - | data(publishing)----> | onSrsBandCheckStartingPublishBytes  
152 - | <--call(stop publish) | onSrsBandCheckStopPublishBytes  
153 - | result(stopped)(1)--> | onSrsBandCheckStoppedPublishBytes 149 + | <-call(start publish) |
  150 + | result(publishing)--> |
  151 + | data(publishing)----> |
  152 + | <--call(stop publish) |
  153 + | result(stopped)(1)--> |
154 | | 154 | |
155 | <--------------report | 155 | <--------------report |
156 - | final(2)------------> | finalClientPacket 156 + | final(2)------------> |
157 | <END> | 157 | <END> |
158 -1. when flash client, server ignore the publish stopped result,  
159 - and directly send the report to flash client.  
160 -2. flash client only. when got report, flash client should send out  
161 - a final packet and close the connection immediately. 158 +
  159 +@see: class SrsBandwidth comments.
162 </pre> 160 </pre>
163 161
164 ### System Requirements 162 ### System Requirements