webrtc-tools
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

WebRTC-Tools

English | 简体中文

demo: https://ltsg123.github.io/webrtc-tools/example/

Install

Use npm

# with npm
npm i webrtc-tools

CDN is also provided

<script src="https://ltsg123.github.io/webrtc-tools/dist/index.js"></script>

Example image:

Using

import { createTimeline } from "webrtc-tools";
const options = {
  // View Update Interval
  scale: 100,
  // Bottom Timeline Interval
  timeStep: 10 * 1000,
};

// create a timeline graph
const graph = createTimeline("key", "canvasId", options);

// set boundaries
graph.setBoundaries("up", 500, "blue");

// add graph point
setInterval(() => {
  graph.addGraphPoint(Math.random() * 1000);
}, 1000 / 30);

build

yarn

yarn build

dev

yarn

yarn dev

Any questions you can contact me at ltsg0317@outlook.com

Readme

Keywords

Package Sidebar

Install

npm i webrtc-tools

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

119 kB

Total Files

7

Last publish

Collaborators

  • ltsg123