Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2013-12-22 17:41:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
908f0d87e96c3bf6c60627009a0d27ca1dbab03d
908f0d87
1 parent
084ad795
add bandwidth workflow
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
31 行增加
和
2 行删除
README.md
trunk/src/core/srs_core_bandwidth.hpp
README.md
查看文件 @
908f0d8
...
...
@@ -131,6 +131,35 @@ Stream Architecture:
| ...) | +-> DVR --------------+-> FILE |
+-----------+-------------------------+----------------+
</pre>
Bandwidth Test Workflow:
<pre>
+------------+ +----------+
| Client | | Server |
+-----+------+ +-----+----+
| |
| connect vhost------> | if vhost enable bandwidth,
| <-----result(success) | do bandwidth check.
| |
| <----call(start play) | onSrsBandCheckStartPlayBytes
| result(playing)-----> | onSrsBandCheckStartingPlayBytes
| <-------data(playing) | onSrsBandCheckStartingPlayBytes
| <-----call(stop play) | onSrsBandCheckStopPlayBytes
| result(stopped)-----> | onSrsBandCheckStoppedPlayBytes
| |
| <-call(start publish) | onSrsBandCheckStartPublishBytes
| result(publishing)--> | onSrsBandCheckStartingPublishBytes
| data(publishing)----> | onSrsBandCheckStartingPublishBytes
| <--call(stop publish) | onSrsBandCheckStopPublishBytes
| result(stopped)(1)--> | onSrsBandCheckStoppedPublishBytes
| |
| <--------------report |
| final(2)------------> | finalClientPacket
|
<END>
|
1.
when flash client, server ignore the publish stopped result,
and directly send the report to flash client.
2.
flash client only. when got report, flash client should send out
a final packet and close the connection immediately.
</pre>
### System Requirements
Supported operating systems and hardware:
...
...
trunk/src/core/srs_core_bandwidth.hpp
100644 → 100755
查看文件 @
908f0d8
...
...
@@ -57,10 +57,10 @@ class SrsRtmp;
* | result(publishing)--> | onSrsBandCheckStartingPublishBytes
* | data(publishing)----> | onSrsBandCheckStartingPublishBytes
* | <--call(stop publish) | onSrsBandCheckStopPublishBytes
* | result(stopped)
-----> | onSrsBandCheckStoppedPublishBytes(1)
* | result(stopped)
(1)--> | onSrsBandCheckStoppedPublishBytes
* | |
* | <--------------report |
* | final
---------------> | finalClientPacket(2)
* | final
(2)------------> | finalClientPacket
* | <END> |
* 1. when flash client, server ignore the publish stopped result,
* and directly send the report to flash client.
...
...
请
注册
或
登录
后发表评论