1.2.0 • Published 3 years ago

peerconnection-stats v1.2.0

Weekly downloads
93
License
MIT
Repository
github
Last release
3 years ago

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 => {
    ...
  });
1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago