Hey,
we use our RTP to WebRTC setup to stream video content to the browser. I use Kurento Server 6.1.1, kurento-client 6.1.1-dev.
I like to get stats from the endpoints, so I call getStats on the two endpoints. The problem is that the result of getStats on the rtpEndpoint is always null. No error is thrown or returned.
Question 1: What is going on? :)
I use this function to get the stats of the endpoints. I pass in references to the endpoints when calling getStats.
function getStats(endpoint, done) {
if (endpoint) {
endpoint.getStats(function(err, stats) {
return done(err, stats);
});
} else {
return done(null, "No Endpoint");
}
}
This is the output:
rtpEndpoint null
webRtcEndpoint { '4ca3cb9e-9269-4504-a000-75dc797e85cd':
{ __module__: 'kurento',
__type__: 'RTCOutboundRTPStreamStats',
associateStatsId: '',
bytesSent: 52800,
codecId: '',
firCount: 0,
fractionLost: 0,
id: '4ca3cb9e-9269-4504-a000-75dc797e85cd',
isRemote: false,
mediaTrackId: '',
nackCount: 0,
packetsLost: 0,
packetsSent: 330,
pliCount: 0,
remb: 0,
roundTripTime: 0.0008697509765625,
sliCount: 0,
ssrc: '4285449851',
targetBitrate: 64355,
timestamp: 1446469583,
transportId: '',
type: 'outboundrtp' },
'a376b855-0ec9-41a2-9269-b0a48b569c29':
{ __module__: 'kurento',
__type__: 'RTCOutboundRTPStreamStats',
associateStatsId: '',
bytesSent: 2324031,
codecId: '',
firCount: 0,
fractionLost: 0,
id: 'a376b855-0ec9-41a2-9269-b0a48b569c29',
isRemote: false,
mediaTrackId: '',
nackCount: 0,
packetsLost: 0,
packetsSent: 1764,
pliCount: 0,
remb: 0,
roundTripTime: 0.0005035400390625,
sliCount: 0,
ssrc: '1084455287',
targetBitrate: 2843979,
timestamp: 1446469583,
transportId: '',
type: 'outboundrtp' } }
The second question is about the latency stats feature introduced in 6.1.1 (see:
here). How can I access them? I don't see them included in the output above.
Thanks and regards
Max