SDP example via WebRTC

back to list

On start, ice‑client (your browser) fetches ice‑configuration from server cydev/web (which handles both STUN with gortc/stun and HTTP), creates new RTCPeerConnection and gathers ice‑candidates via binding requests to server. Server saves received packet as stun.Message before responding with binding response. Then ice‑client creates ice‑offer and sends it to web server. Server parses ice‑offer as stun.Session and every ice‑candidate in it as ice.Candidate with ernado/ice. For server‑reflexive candidates server dumps saved stun.Message.

Use go get -u to decode raw STUN messages.

// TODO(ar): visualise client-server interaction

Waiting for server response.