OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 * @fileoverview Keeps track of all the existing PlayerInfo and | 6 * @fileoverview Keeps track of all the existing PlayerInfo and |
7 * audio stream objects and is the entry-point for messages from the backend. | 7 * audio stream objects and is the entry-point for messages from the backend. |
8 * | 8 * |
9 * The events captured by Manager (add, remove, update) are relayed | 9 * The events captured by Manager (add, remove, update) are relayed |
10 * to the clientRenderer which it can choose to use to modify the UI. | 10 * to the clientRenderer which it can choose to use to modify the UI. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 if (!this.players_[id]) { | 102 if (!this.players_[id]) { |
103 console.error('[updatePlayerInfo] Id ' + id + ' does not exist'); | 103 console.error('[updatePlayerInfo] Id ' + id + ' does not exist'); |
104 return; | 104 return; |
105 } | 105 } |
106 | 106 |
107 this.players_[id].addProperty(timestamp, key, value); | 107 this.players_[id].addProperty(timestamp, key, value); |
108 this.clientRenderer_.playerUpdated(this.players_, | 108 this.clientRenderer_.playerUpdated(this.players_, |
109 this.players_[id], | 109 this.players_[id], |
110 key, | 110 key, |
111 value); | 111 value); |
| 112 }, |
| 113 |
| 114 updateVideoCaptureCapabilities: function(videoCaptureCapabilities) { |
| 115 // The keys of each device to be shown in order of appearance. |
| 116 var videoCaptureDeviceKeys = ['id','name','formats','captureApi']; |
| 117 this.clientRenderer_.redrawVideoCaptureCapabilities( |
| 118 videoCaptureCapabilities, videoCaptureDeviceKeys); |
112 } | 119 } |
113 }; | 120 }; |
114 | 121 |
115 return Manager; | 122 return Manager; |
116 }()); | 123 }()); |
OLD | NEW |