OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 var peerConnectionsListElem = null; | 6 var peerConnectionsListElem = null; |
7 var ssrcInfoManager = null; | 7 var ssrcInfoManager = null; |
8 var peerConnectionUpdateTable = null; | 8 var peerConnectionUpdateTable = null; |
9 var statsTable = null; | 9 var statsTable = null; |
10 var dumpCreator = null; | 10 var dumpCreator = null; |
11 | 11 |
| 12 // The maximum number of data points bufferred for each stats. Old data points |
| 13 // will be shifted out when the buffer is full. |
| 14 var MAX_STATS_DATA_POINT_BUFFER_SIZE = 1000; |
| 15 |
12 <include src="ssrc_info_manager.js"/> | 16 <include src="ssrc_info_manager.js"/> |
13 <include src="stats_graph_helper.js"/> | 17 <include src="stats_graph_helper.js"/> |
14 <include src="stats_table.js"/> | 18 <include src="stats_table.js"/> |
15 <include src="peer_connection_update_table.js"/> | 19 <include src="peer_connection_update_table.js"/> |
16 <include src="dump_creator.js"/> | 20 <include src="dump_creator.js"/> |
17 | 21 |
18 function initialize() { | 22 function initialize() { |
19 peerConnectionsListElem = $('peer-connections-list'); | 23 peerConnectionsListElem = $('peer-connections-list'); |
20 dumpCreator = new DumpCreator(peerConnectionsListElem); | 24 dumpCreator = new DumpCreator(peerConnectionsListElem); |
21 ssrcInfoManager = new SsrcInfoManager(); | 25 ssrcInfoManager = new SsrcInfoManager(); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 167 |
164 | 168 |
165 /** | 169 /** |
166 * Delegates to dumpCreator to update the recording status. | 170 * Delegates to dumpCreator to update the recording status. |
167 * @param {!Object.<string>} update Key-value pairs describing the status of the | 171 * @param {!Object.<string>} update Key-value pairs describing the status of the |
168 * RTP recording. | 172 * RTP recording. |
169 */ | 173 */ |
170 function updateDumpStatus(update) { | 174 function updateDumpStatus(update) { |
171 dumpCreator.onUpdate(update); | 175 dumpCreator.onUpdate(update); |
172 } | 176 } |
OLD | NEW |