0.0.8 • Published 2 years ago

webrtc-internals v0.0.8

Weekly downloads
1,360
License
MIT
Repository
github
Last release
2 years ago

WebRTC Internals

Goal is to replace react-sparklines in Discord with chrome://webrtc-internals style graphs. timeline_data_series.js and timeline_graph_view.js are taken from https://github.com/fippo/webrtc-externals.

Install

npm install webrtc-internals

Use

Please see https://github.com/vassjozsef/webrtc-internals-test:

const {TimelineDataSeries, TimelineGraphView} = require('webrtc-internals');

const canvas = document.getElementById('canvas')
const graphView = new TimelineGraphView(canvas);

const dataSeries = new TimelineDataSeries();
graphView.addDataSeries(dataSeries);

const timestamp = Date.now();
dataSeries.addPoint(timestamp, Math.random());
graphView.updateEndDate();
0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 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