vpalmisano / observer-js

Development Toolkits for Extracting and Processing WebRTC Stats Samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wobserver WebRTC Extractor

Extractor Development Toolkits for WebRTC Samples

Build library locally

  • Install dependencies

    • Make sure we have type script installed in the system
      • npm install -g typescript`
    • Install package dependencies
      • npm ci
    • Build the library
      • npm run build ( developer version )
      • npm run build-dev ( production version )

    Once build is complete it will create observer.js ( developer) or observer.min.js ( production ) library in the dist folder.

You can just use the latest version of the library from GitHub directly in your HTML/JavaScript. You can either use specific version from available version list or can use the latest version.

  • Developer version
<script src="https://observertc.github.io/observer-js/dist/latest/observer.js"></script>
  • Production version
<script src="https://observertc.github.io/observer-js/dist/latest/observer.min.js"></script>

Run demo

  • Goto example-demo folder from __test__
  • cd __test__/example-demo
  • Install npm dependency
  • npm install
  • Run the demo
  • npm run start-server and access the server from http://localhost:9090
Change websocket server address in the demo application

About

Development Toolkits for Extracting and Processing WebRTC Stats Samples

License:Apache License 2.0


Languages

Language:TypeScript 79.0%Language:JavaScript 16.4%Language:HTML 3.7%Language:CSS 0.8%