@avahq/wrtc
TypeScript icon, indicating that this package has built-in type declarations

0.7.6-fixondata.1 • Public • Published

    

NPM

node-webrtc is a Node.js Native Addon that provides bindings to WebRTC M94. This project is aiming for spec-compliance and will eventually be tested using the W3C's web-platform-tests project. A number of nonstandard APIs for testing are also included.

Install

npm install @avahq/wrtc

Installing from NPM downloads a prebuilt binary for your operating system × architecture, based on optional dependency filters.

To install a debug build or cross-compile, you should build from source.

Supported Platforms

The following platforms are confirmed to work with node-webrtc and have prebuilt binaries available. Since node-webrtc targets N-API version 3, there may be additional platforms supported that are not listed here. If your platform is not supported, you may still be able to build from source.

Linux macOS Windows
x64 arm64 x64 arm64 x64
Node 18 ?
20

Examples

See node-webrtc/node-webrtc-examples.

Build @avahq module and deploy them

  • first login via npm login
  • the compile the binary via dockerfile docker build -t webrtc-forked/arm64 . || docker build -t webrtc-forked/amd64 -f Dockerfile.amd64 . if needed our your personnal machine, use the target arch via TARGET_ARCH=arm64|x64 npm run build
  • It can take time to build (~15mn on mac m2)
  • Run the container image you build
  • Then get the wrtc.node from the build-${arch} folder (via docker cp or docker file dashboard) and put it inside the right prebuild/${arch} folder
  • Do it for all platform/arch you can
  • Run npm version major|minor|patch.. inside each subfolder
  • Run npm publish and wait for ok return (if e422 please add --access-public to the publish command)
  • Update the version linked for every submodules into package.json here
  • Run npm version major|minor|patch.. inside this project
  • Run npm publish inside this project
  • DONE

Readme

Keywords

Package Sidebar

Install

npm i @avahq/wrtc

Weekly Downloads

563

Version

0.7.6-fixondata.1

License

BSD-2-Clause

Unpacked Size

56.7 kB

Total Files

20

Last publish

Collaborators

  • skinnercheng
  • ava-ops
  • matthd