It is surprisingly old school when doing video and audio. You pass SDP over
a signalling channel, which is most commonly SIP over WebRTC (I kid you
not!) or XMPP over WebRTC. There are some newer standards like ORTC, which
apparently has more awesome and less cruft.
The major difference though is that the WebRTC standard mandates support
for SRTP for encrypted audio and ICE for NAT busting, so you are not
dealing with clients that do not have NAT traversal capabilities.
In the 'guaranteed to work' scenario, two clients would talk to a 3rd party
service handling peer discovery -- like a typical SIP server, or
Jabber/XMPP server -- and a TURN server (which is also a superset of STUN)
to assist in ICE negotiation and offer RTP relay in the event that the two
peers can't establish an RTP channel directly between themselves.
Note there that WebRTC does not solve the problem of peer discovery, that's
left to existing technology like SIP and XMPP, or decentralized peer
discovery techniques like DHT's (distributed hash table).
So despite this fancy new connection technology, we are still left with
islands of clients with no universal way to discover each other, and
generally rely on centrally controlled peer discovery services for that
discovery.
Closing points:
- I can talk ad nauseam about any of these pieces, and it's applications.
Ask more questions!
- Any particular workshop topics you'd like covered?