|
@@ -37,7 +37,6 @@ import {VIDEO_CONTAINER_TYPE} from "./modules/UI/videolayout/VideoContainer";
|
37
|
37
|
* Known custom conference commands.
|
38
|
38
|
*/
|
39
|
39
|
const commands = {
|
40
|
|
- CONNECTION_QUALITY: "stats",
|
41
|
40
|
EMAIL: "email",
|
42
|
41
|
AVATAR_URL: "avatar-url",
|
43
|
42
|
AVATAR_ID: "avatar-id",
|
|
@@ -1299,26 +1298,10 @@ export default {
|
1299
|
1298
|
}
|
1300
|
1299
|
|
1301
|
1300
|
room.on(ConnectionQualityEvents.LOCAL_STATS_UPDATED,
|
1302
|
|
- (percent, stats) => {
|
1303
|
|
- APP.UI.updateLocalStats(percent, stats);
|
1304
|
|
-
|
1305
|
|
- // TODO: Move this to the library.
|
1306
|
|
- // Send only the data that remote participants care about.
|
1307
|
|
- let data = {
|
1308
|
|
- bitrate: stats.bitrate,
|
1309
|
|
- packetLoss: stats.packetLoss};
|
1310
|
|
- if (localVideo && localVideo.resolution) {
|
1311
|
|
- data.resolution = localVideo.resolution;
|
1312
|
|
- }
|
|
1301
|
+ (stats) => {
|
|
1302
|
+ APP.UI.updateLocalStats(stats.connectionQuality, stats);
|
1313
|
1303
|
|
1314
|
|
- try {
|
1315
|
|
- room.broadcastEndpointMessage({
|
1316
|
|
- type: this.commands.defaults.CONNECTION_QUALITY,
|
1317
|
|
- values: data });
|
1318
|
|
- } catch (e) {
|
1319
|
|
- reportError(e);
|
1320
|
|
- }
|
1321
|
|
- });
|
|
1304
|
+ });
|
1322
|
1305
|
|
1323
|
1306
|
room.on(ConnectionQualityEvents.REMOTE_STATS_UPDATED,
|
1324
|
1307
|
(id, percent, stats) => {
|