Merge branch 'RC1-1.0' of https://github.com/havfo/multiparty-meeting into RC1-1.0

master
Stefan Otto 2018-11-22 12:16:15 +01:00
commit e67968cafe
2 changed files with 15 additions and 12 deletions

View File

@ -155,17 +155,20 @@ function handleTransport(transport, baseEvent, stream)
const statsInterval = setInterval(() => const statsInterval = setInterval(() =>
{ {
transport.getStats() if (typeof transport.getStats === 'function')
.then((stats) => {
{ transport.getStats()
emit( .then((stats) =>
Object.assign({}, baseEvent, {
{ emit(
event : 'transport.stats', Object.assign({}, baseEvent,
stats : stats {
}), event : 'transport.stats',
stream); stats : stats
}); }),
stream);
});
}
}, STATS_INTERVAL); }, STATS_INTERVAL);
transport.on('close', (originator) => transport.on('close', (originator) =>

View File

@ -12,7 +12,7 @@
"compression": "^1.7.3", "compression": "^1.7.3",
"debug": "^4.1.0", "debug": "^4.1.0",
"express": "^4.16.3", "express": "^4.16.3",
"mediasoup": "^2.3.3", "mediasoup": "^2.4.3",
"passport-dataporten": "^1.3.0", "passport-dataporten": "^1.3.0",
"socket.io": "^2.1.1" "socket.io": "^2.1.1"
}, },