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(() =>
{
transport.getStats()
.then((stats) =>
{
emit(
Object.assign({}, baseEvent,
{
event : 'transport.stats',
stats : stats
}),
stream);
});
if (typeof transport.getStats === 'function')
{
transport.getStats()
.then((stats) =>
{
emit(
Object.assign({}, baseEvent,
{
event : 'transport.stats',
stats : stats
}),
stream);
});
}
}, STATS_INTERVAL);
transport.on('close', (originator) =>

View File

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