From d8ed7cc968aa60dc84262884970a4df6ec408127 Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 12 Jul 2014 21:03:26 +0800 Subject: [PATCH] refine the js library for bandwidth test. --- trunk/research/players/srs_bwt/src/srs.bandwidth.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trunk/research/players/srs_bwt/src/srs.bandwidth.js b/trunk/research/players/srs_bwt/src/srs.bandwidth.js index 0ba920158..9595caa11 100755 --- a/trunk/research/players/srs_bwt/src/srs.bandwidth.js +++ b/trunk/research/players/srs_bwt/src/srs.bandwidth.js @@ -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("player_id", 100, 1); + var bandwidth = new SrsBandwidth("container_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: +
+* this js will directly erase the container by swfobject. */ function SrsBandwidth(container, width, height, private_object) { if (!SrsBandwidth.__id) {