webrtc-internals

0.0.8 • Public • Published

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();

Readme

Keywords

Package Sidebar

Install

npm i webrtc-internals

Weekly Downloads

815

Version

0.0.8

License

MIT

Unpacked Size

26.7 kB

Total Files

7

Last publish

Collaborators

  • vassjozsef