Allow getUserMedia streams to be added to the PeerConnection.
So what's the deal with media streams? Can someone explain?
Media streams add a layer of complexity to the API and the code (in terms of more browserisms, more configuration, etc) that most people using pure P2P data would not care about.
@saada That's not quite correct; PeerConnection has been around for a while, and so have media streams, which facilitate P2P streaming of audio and video. PeerJS actually abstracts away a completely new WebRTC technology built on top of PeerConnection, called DataChannel, which facilitates P2P data transfer. DataChannel allows arbitrary data (not just video/audio) to be streamed P2P, which is super exciting.
Our current plan is to keep the Peer.connect(...) functionality for P2P data, but add a Peer.call(...) method for those who are more interested in using WebRTC to make video/audio calls.
Thanks for the info and the good work, keep it up!
Closed by #78