We’re thrilled to announce an integration with the Kurento SDK (now a part of Twilio).
Kurento, meaning “current”/“stream” in Esperanto!, is an open source WebRTC platform that adapts into many video uses cases, including group communications, transcoding, recording, mixing, broadcasting, and routing of audiovisual flows.
As of now, the callstats.io integration works with Kurento Rooms, but in the coming weeks, we will make Kurento Media Server side stats available as well.
Many thanks to Dan Jenkins and the Nimble Ape team for getting this integration up and running!
How to Integrate
In the HTML
<html>
<head>
<!-- Load callstats.io library (it provides window.callstats -->
<script src="https://api.callstats.io/static/callstats.min.js"></script>
<!-- Load Kurento Utils library -->
<script src="bower_components/kurento-utils/js/kurento-utils.js"></script>
<!-- Load callstats-kurento library (it provides window.callstatskurento) -->
<script src="js/callstats-kurento.js"></script>
<!-- Load our app code -->
<script src="js/app.js"></script>
</head>
<body>
<!-- your stuff -->
</body>
</html>
In app.js:
// Create a callstats-kurento App instance.
var ckApp;
var ckConference;
window.onload = function() {
ckApp = callstatskurento(
AppID,
AppSecret,
localUserID
);
// Create a callstats kurento conference interface, by supplying the CONFERENCE_ID
ckConference = cskApp.createConference(CONFERENCE_ID);
}
webRtcPeer = kurentoUtils.WebRtcPeer.WebRtcPeerSendonly(options, function(error) {
if(error) return onError(error);
// Create a callstats-kurento peer, by handling the the webrTc peer returned by kurentoUtils
// and supplying a PEER_ID (a session ID).
var ckPeer = ckConference.handle(webRtcPeer, PEER_ID);
this.generateOffer(onOfferPresenter);
});
NPM/Bower libraries have been published to the NPM/Bower registries.
Read here the full documentation
Sample app can be found here - https://github.com/nimbleape/kurento-tutorial-node
So, if you are a Kurento user, you can start using the integration by signing up for a free trial account at dashboard.callstats.io/register.