JSPM

  • Created
  • Published
  • Downloads 166468
  • Score
    100M100P100Q158809F
  • License MIT

Simple one-to-one WebRTC video/audio and data channels

Package Exports

  • simple-peer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simple-peer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

simple-peer npm gittip

Simple one-to-one WebRTC video/audio and data channels

p2p visualized!!!1

Simple "peer" abstraction to get started with WebRTC.

Turns this:

before

(^ and that's video/audio only. Data channels methods/events not shown...)

Into this:

after

Much nicer, right?

features

  • two-way video/audio stream and data channel
  • simple events
  • makes a lot of assumptions about your app. feel free to rip the code out and adapt.

install

npm install simple-peer

usage

TODO. For now, take a look at test/basic.js or lxjs-chat for usage examples.

license

MIT. Copyright (c) Feross Aboukhadijeh.