0.0.2-3 • Published 12 years ago

webrtc.io-client v0.0.2-3

Weekly downloads
17
License
-
Repository
github
Last release
12 years ago

webrtc.io

A library that is to webRTC like socket.io is to WebSockets.

This will eventually be bundled with the server code.

Installation

Currently, webrtc.io depends on socket.io, so include the socket.io client as well. After including socket.io-client, drop in lib/io.js. You'll also need a webrtc.io server running.

Now you can start using webRTC commands with our abstraction.

Usage

rtc.createStream('DOM_id');
rtc.connect('http://yourserveraddress');
rtc.on('ready', function() {
  // all streams are loaded
});

You can set the STUN server by calling rtc.SERVER = "STUN stun.l.google.com:19302" and set your server. The default STUN server used by the library is one from google.

0.0.2-3

12 years ago

0.0.2-2

12 years ago

0.0.2-1

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago

0.0.0

12 years ago