Updated mediasoup, and handle plaintransport in homer.js

master
Håvar Aambø Fosstveit 2018-11-21 11:32:09 +01:00
parent 6a30cf9526
commit a3556785e1
2 changed files with 15 additions and 12 deletions

View File

@ -154,6 +154,8 @@ function handleTransport(transport, baseEvent, stream)
}); });
const statsInterval = setInterval(() => const statsInterval = setInterval(() =>
{
if (typeof transport.getStats === 'function')
{ {
transport.getStats() transport.getStats()
.then((stats) => .then((stats) =>
@ -166,6 +168,7 @@ function handleTransport(transport, baseEvent, stream)
}), }),
stream); 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"
}, },