Skip to content

vassjozsef/webrtc-internals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published