Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
PeerSquared
One on one online teaching through webRTC
PeerSquared uses webRTC:
Multiple webRTC peer connections for:
Local webcam stream
Remote webcam stream
Reliable (SCTP...
Currently only for PC:
Chrome
Firefox
Opera
(Interoperable between first two)
Works through Firewalls:
STUN (stun.l.g...
DEMO
www.peersquared.info
Problems I encountered:
Finding good documentation
Changing specs (work in progress)
Different vendor implementations
Missing onnegotiationneeded event
For now solved: multiple peer connections

Packet size limit of 16k (Chrome)
Solved by chunking data:
ArrayBuffer.slice(start, end)
String.slice(start, end)
Buf...
Some traps:
Firefox puts ICE candidates in session description,
so check:
First call pConnection.createDataChannel
or ...
THANK YOU!
Upcoming SlideShare
Loading in …5
×

Peer squared - One on one online teaching through webRTC

922 views

Published on

A short introduction about PeerSquared and how it uses webRTC for direct communication between browser clients.

  • Be the first to comment

  • Be the first to like this

Peer squared - One on one online teaching through webRTC

  1. 1. PeerSquared One on one online teaching through webRTC
  2. 2. PeerSquared uses webRTC: Multiple webRTC peer connections for: Local webcam stream Remote webcam stream Reliable (SCTP) datachannels  Datachannels to: Set up new peer connections Send files Send text chat messages Send whiteboard data
  3. 3. Currently only for PC: Chrome Firefox Opera (Interoperable between first two) Works through Firewalls: STUN (stun.l.google.com) TURN (numb.viagenie.ca)
  4. 4. DEMO www.peersquared.info
  5. 5. Problems I encountered: Finding good documentation Changing specs (work in progress) Different vendor implementations
  6. 6. Missing onnegotiationneeded event For now solved: multiple peer connections 
  7. 7. Packet size limit of 16k (Chrome) Solved by chunking data: ArrayBuffer.slice(start, end) String.slice(start, end) Buffer size limit of 256k (Chrome) Solved by checking the buffer:
  8. 8. Some traps: Firefox puts ICE candidates in session description, so check: First call pConnection.createDataChannel or pConnection.addStream, and then pConnection.createOffer  
  9. 9. THANK YOU!

×