Extractor Development Toolkits for WebRTC Samples
-
- 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) orobserver.min.js
( production ) library in thedist
folder. - Make sure we have type script installed in the system
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>
- 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
- Goto integration.js and change server address
- Change the current websocket server address
- Run the demo
npm run start-server
and access the server from http://localhost:9090