Skip to content

Instantly share code, notes, and snippets.

@kkm
Created November 29, 2016 11:53
Show Gist options
  • Select an option

  • Save kkm/a7013eca79171605af188a1f3fa67294 to your computer and use it in GitHub Desktop.

Select an option

Save kkm/a7013eca79171605af188a1f3fa67294 to your computer and use it in GitHub Desktop.
pc2.getStats(function(response) {
var results = response.result();
results.forEach(function(report) {
if(report.type == "ssrc") {
console.log("---", report, report.type)
report.names().forEach(function(name) {
console.log(name, report.stat(name));
})
}
})
}, null, null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment