| 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 var USER_MEDIA_TAB_ID = 'user-media-tab-id'; | 5 var USER_MEDIA_TAB_ID = 'user-media-tab-id'; |
| 6 | 6 |
| 7 var tabView = null; | 7 var tabView = null; |
| 8 var ssrcInfoManager = null; | 8 var ssrcInfoManager = null; |
| 9 var peerConnectionUpdateTable = null; | 9 var peerConnectionUpdateTable = null; |
| 10 var statsTable = null; | 10 var statsTable = null; |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 = 'bold'; | 292 = 'bold'; |
| 293 appendChildWithText(requestDiv, 'div', data.audio); | 293 appendChildWithText(requestDiv, 'div', data.audio); |
| 294 | 294 |
| 295 appendChildWithText(requestDiv, 'span', 'Video Constraints').style.fontWeight | 295 appendChildWithText(requestDiv, 'span', 'Video Constraints').style.fontWeight |
| 296 = 'bold'; | 296 = 'bold'; |
| 297 appendChildWithText(requestDiv, 'div', data.video); | 297 appendChildWithText(requestDiv, 'div', data.video); |
| 298 } | 298 } |
| 299 | 299 |
| 300 | 300 |
| 301 /** | 301 /** |
| 302 * Handles the report of stats. |
| 303 * |
| 304 * @param {!Object} data The object containing pid, video_id, fps, |
| 305 * dropped_frames, bla, bla. |
| 306 */ |
| 307 function addVideoStats(data) { |
| 308 console.log("addvideoStats video source name" + data.video_id + " frame rate"
+ data.input_frame_rate + " dropped frames " + data.number_of_dropped_frames); |
| 309 // TODO |
| 310 } |
| 311 |
| 312 |
| 313 /** |
| 302 * Removes the getUserMedia requests from the specified |rid|. | 314 * Removes the getUserMedia requests from the specified |rid|. |
| 303 * | 315 * |
| 304 * @param {!Object} data The object containing rid {number}, the render id. | 316 * @param {!Object} data The object containing rid {number}, the render id. |
| 305 */ | 317 */ |
| 306 function removeGetUserMediaForRenderer(data) { | 318 function removeGetUserMediaForRenderer(data) { |
| 307 for (var i = userMediaRequests.length - 1; i >= 0; --i) { | 319 for (var i = userMediaRequests.length - 1; i >= 0; --i) { |
| 308 if (userMediaRequests[i].rid == data.rid) | 320 if (userMediaRequests[i].rid == data.rid) |
| 309 userMediaRequests.splice(i, 1); | 321 userMediaRequests.splice(i, 1); |
| 310 } | 322 } |
| 311 | 323 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 328 dumpCreator.disableAecRecording(); | 340 dumpCreator.disableAecRecording(); |
| 329 } | 341 } |
| 330 | 342 |
| 331 | 343 |
| 332 /** | 344 /** |
| 333 * Set | 345 * Set |
| 334 */ | 346 */ |
| 335 function enableAecRecording() { | 347 function enableAecRecording() { |
| 336 dumpCreator.enableAecRecording(); | 348 dumpCreator.enableAecRecording(); |
| 337 } | 349 } |
| OLD | NEW |