1.1.2 • Published 4 months ago

@webex/rtcstats v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

rtcstats.js

Low-level logging on peerconnection API calls and periodic getStats calls for analytics/debugging purposes

Note: This is a fork of https://github.com/fippo/rtcstats configured for typescript. It no longer wraps WebRTC methods but instead takes in and logs stats from a RTCPeerConnection argument.

Integration

import { rtcStats } from 'rtcstats';

const pc = new RTCPeerConnection();

// log peerconnection events with `console.log`, also calls `pc`'s `.getStats()` every 5 seconds.
rtcStats(pc, console.log, 5000);

build

Install Depencies and run yarn build, output will be in the local dist/ folder.

yarn
yarn build

typescript

You may take the typescript file rtcstats.ts and drop it in your project.

import { rtcStats } from './my-project-utils/rtcstats';
1.1.2

4 months ago

1.1.1

6 months ago

1.1.0

8 months ago

1.0.2

11 months ago

1.0.1

1 year ago