1.2.0 • Published 4 years ago

peerconnection-stats v1.2.0

Weekly downloads
93
License
MIT
Repository
github
Last release
4 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

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago