simple-peer

Simple WebRTC video, voice, and data channels

README

simple-peer [![ci][ci-image]][ci-url] [![coveralls][coveralls-image]][coveralls-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] [![javascript style guide][sauce-image]][sauce-url]


[ci-image]: https://img.shields.io/github/workflow/status/feross/simple-peer/ci/master
[ci-url]: https://github.com/feross/simple-peer/actions
[coveralls-image]: https://coveralls.io/repos/github/feross/simple-peer/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/feross/simple-peer?branch=master
[npm-image]: https://img.shields.io/npm/v/simple-peer.svg
[npm-url]: https://npmjs.org/package/simple-peer
[downloads-image]: https://img.shields.io/npm/dm/simple-peer.svg
[downloads-url]: https://npmjs.org/package/simple-peer
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[standard-url]: https://standardjs.com
[sauce-image]: https://saucelabs.com/buildstatus/simple-peer
[sauce-url]: https://saucelabs.com/u/simple-peer

Simple WebRTC video, voice, and data channels


Sponsored by    DFINITY

We are hiring a peer-to-peer WebRTC mobile Web application expert.

>

DFINITY is building an exciting peer-to-peer WebRTC-based mobile Web app to help improve democracy on the Internet Computer blockchain. The mobile web app connects groups of up to four people in a peer-to-peer WebRTC audio and video call so that they can mutually prove unique personhood.

>

We are looking for a software engineer or consultant who can help us solve (platform-dependent) reliability issues of our implementation. We are interested in applicants with substantial WebRTC experience for mobile Web apps, experience with different communication patterns (e.g., peer-to-peer, server relay), and substantial problem-solving skills. Having experience in automated testing of this type of applications is a plus. Pay is extremely competitive for the right expertise. For details, please see the full job description.


features


- concise, node.js style API for WebRTC
- works in node and the browser!
- supports video/voice streams
- supports data channel
  - text and binary data
  - node.js duplex stream interface
- supports advanced options like:
  - enable/disable trickle ICE candidates
  - manually set config options
  - transceivers and renegotiation

This package is used by WebTorrent and many others.

- api
- [Who is using simple-peer?](#who-is-using-simple-peer)

install


  1. ```
  2. npm install simple-peer
  3. ```

This package works in the browser with browserify. If
you do not use a bundler, you can use the simplepeer.min.js standalone script
directly in a `