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
2014-07-12 21:03:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d8ed7cc968aa60dc84262884970a4df6ec408127
d8ed7cc9
1 parent
0707c24b
refine the js library for bandwidth test.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
trunk/research/players/srs_bwt/src/srs.bandwidth.js
trunk/research/players/srs_bwt/src/srs.bandwidth.js
查看文件 @
d8ed7cc
...
...
@@ -6,7 +6,7 @@
* @param private_object [optional] an object that used as private object,
* for example, the logic chat object which owner this bandwidth.
* Usage:
var bandwidth = new SrsBandwidth("
play
er_id", 100, 1);
var bandwidth = new SrsBandwidth("
contain
er_id", 100, 1);
bandwidth.on_bandwidth_ready = function() {
// auto start check bandwidth when tool is ready.
this.check_bandwidth(url);
...
...
@@ -24,6 +24,9 @@
//);
}
bandwidth.render("rtmp://dev:1935/app?key=35c9b402c12a7246868752e2878f7e0e&vhost=bandcheck.srs.com");
* where the HTML page must contains an element:
<div id="container_id"></div>
* this js will directly erase the container by swfobject.
*/
function
SrsBandwidth
(
container
,
width
,
height
,
private_object
)
{
if
(
!
SrsBandwidth
.
__id
)
{
...
...
请
注册
或
登录
后发表评论