peerconnection-stats
v1.2.0
Published
A getStats API of peerconnection with 'Standardized' and 'Legacy Non-Standard' reports.
Downloads
6
Maintainers
Readme
Peerconnection getStats API
English | 中文
A getStats API of peerconnection with Standardized
and Legacy Non-Standard
reports, and it will normalized the output.
Examples
For more APIs, see DOCS
getStats
getStats(peerconnection)
.then((originalReports: OriginalReports) => {
const reports: AudioInputReports = new AudioInputReports(originalReports);
console.log(reports.bytesReceived);
...
})
.catch(err => {
...
});
getLegacyStats
getLegacyStats(peerconnection)
.then((originalReports: OriginalReports) => {
const reports: AudioInputLegacyReports = new AudioInputLegacyReports(originalReports);
console.log(reports.bytesReceived);
...
})
.catch(err => {
...
});