Jingle-RTCPeerConnection
What is this?
Jingle-RTCPeerConnection is a wrapper for Henrik Joreteg's RTCPeerConnection
that works with JSON instead of raw SDP, as processed by SDP-Jingle-JSON.
Installing
npm install jingle-rtcpeerconnection
If you're not using browserify or you want AMD support use jingle-rtcpeerconnection.bundle.js.
How to Use
Jingle-RTCPeerConnection exposes the same API methods and events as RTCPeerConnection.
The differences are:
-
Offer and answer results look like:
{
type: "offer", // or "answer",
sdp: "RAW SDP",
json: {...}
}
-
ICE candidates are JSON objects and not an SDP line string.
License
MIT
Credits
If you like this, follow @lancestout on twitter.