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

add bandwidth workflow

This commit is contained in:
winlin 2013-12-22 17:43:03 +08:00
parent 908f0d87e9
commit 1ac88459bc

View file

@ -137,28 +137,26 @@ Bandwidth Test Workflow:
| Client | | Server | | Client | | Server |
+-----+------+ +-----+----+ +-----+------+ +-----+----+
| | | |
| connect vhost------> | if vhost enable bandwidth, | connect vhost------> |
| <-----result(success) | do bandwidth check. | <-----result(success) |
| | | |
| <----call(start play) | onSrsBandCheckStartPlayBytes | <----call(start play) |
| result(playing)-----> | onSrsBandCheckStartingPlayBytes | result(playing)-----> |
| <-------data(playing) | onSrsBandCheckStartingPlayBytes | <-------data(playing) |
| <-----call(stop play) | onSrsBandCheckStopPlayBytes | <-----call(stop play) |
| result(stopped)-----> | onSrsBandCheckStoppedPlayBytes | result(stopped)-----> |
| | | |
| <-call(start publish) | onSrsBandCheckStartPublishBytes | <-call(start publish) |
| result(publishing)--> | onSrsBandCheckStartingPublishBytes | result(publishing)--> |
| data(publishing)----> | onSrsBandCheckStartingPublishBytes | data(publishing)----> |
| <--call(stop publish) | onSrsBandCheckStopPublishBytes | <--call(stop publish) |
| result(stopped)(1)--> | onSrsBandCheckStoppedPublishBytes | result(stopped)(1)--> |
| | | |
| <--------------report | | <--------------report |
| final(2)------------> | finalClientPacket | final(2)------------> |
| <END> | | <END> |
1. when flash client, server ignore the publish stopped result,
and directly send the report to flash client. @see: class SrsBandwidth comments.
2. flash client only. when got report, flash client should send out
a final packet and close the connection immediately.
</pre> </pre>
### System Requirements ### System Requirements