Hello,
I tried the following code with Chrome for the stats:
var selector = connection.getRemoteStreams()[0].getAudioTracks()[0];
console.log("Media stream selector is "+selector);
var connection = voxbone.WebRTC.rtcSession.connection;
console.log("peer connection object is "+connection);
connection.getStats(selector, function(report) {
console.log("we are into business of stats");
for (var i in report) {
var now = report[i];
console.log("RTCP report of type "+now.type);
}
},
function(error) {
console.error("name :"+
error.name+ " message: "+ error.message);
});
This code works fine with Firefox, but with Chrome (), i get the following exception:
"
Uncaught TypeError: Failed to execute 'getStats' on 'RTCPeerConnection': The callback provided as parameter 1 is not a function
"
I would really appreciate if someone can explain me what should i do for this?
Thanks,
Nitesh