javascript - Is my understanding of WebRTC protocol Correct? -
this how understand protocol...
- user on browser media stream
- generates own sdp (data on codecs, security, etc)
- creates offer it
- send offer server via signalling method (websocket)
- signalling server, looks offer , redirect client
- client 2's browser gets offer sdp , in turn generate own offer own sdp , send server
- server redirect client 2's offer client 1. both know each other specs.
meanwhile, however...
- as whichever client sends offer sdp start contact ice (stun) server(s) possible reachable path them via correct publicip:port:protocol combo, send client via signalling server.
client 2 generates answer (using createanswer), not offer. main difference answer subset of capabilities (like codecs) contained in offer.
otherwise sounds good.
Comments
Post a Comment