| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 */ | 60 */ |
| 61 setDataSeries: function(dataSeriesId, dataSeries) { | 61 setDataSeries: function(dataSeriesId, dataSeries) { |
| 62 this.record_.stats[dataSeriesId] = dataSeries; | 62 this.record_.stats[dataSeriesId] = dataSeries; |
| 63 }, | 63 }, |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * @param {!Object} update The object contains keys "time", "type", and | 66 * @param {!Object} update The object contains keys "time", "type", and |
| 67 * "value". | 67 * "value". |
| 68 */ | 68 */ |
| 69 addUpdate: function(update) { | 69 addUpdate: function(update) { |
| 70 var time = new Date(parseInt(update.time)); | 70 var time = new Date(parseFloat(update.time)); |
| 71 this.record_.updateLog.push({ | 71 this.record_.updateLog.push({ |
| 72 time: time.toLocaleString(), | 72 time: time.toLocaleString(), |
| 73 type: update.type, | 73 type: update.type, |
| 74 value: update.value, | 74 value: update.value, |
| 75 }); | 75 }); |
| 76 }, | 76 }, |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 return PeerConnectionRecord; | 79 return PeerConnectionRecord; |
| 80 })(); | 80 })(); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 dumpCreator.disableAecRecording(); | 328 dumpCreator.disableAecRecording(); |
| 329 } | 329 } |
| 330 | 330 |
| 331 | 331 |
| 332 /** | 332 /** |
| 333 * Set | 333 * Set |
| 334 */ | 334 */ |
| 335 function enableAecRecording() { | 335 function enableAecRecording() { |
| 336 dumpCreator.enableAecRecording(); | 336 dumpCreator.enableAecRecording(); |
| 337 } | 337 } |
| OLD | NEW |