Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

ObserveRTC/webextrapp

Repository files navigation

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

  • Old version that does not use WebWorker(s).

    • Developer version
    <script src="https://observertc.github.io/webextrapp/dist/observer.js"></script>
    • Production version
    <script src="https://observertc.github.io/webextrapp/dist/observer.min.js"></script>
  • New version that use WebWorker. It's recommend using this version

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

Run demo using docker

  • 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