webRTC-io / webRTC.io

An abstraction layer for webRTC. Aim is to simplify the HTML5 web standard webRTC in a similar manner to socket.io w/ websockets. Highly experimental technology
1.6k stars 293 forks source link

Example client code typo #19

Open hezhao opened 11 years ago

hezhao commented 11 years ago

should close rtc.createStream() function.

<script src="/webrtc.io.js"></script>
<script>
  rtc.createStream({"video": true, "audio":true}, function(stream){
    // get local stream for manipulation
  });
  rtc.connect('ws://yourserveraddress:8001', optionalRoom);
//then a bunch of callbacks are available
</script>