Voice & Video Calls, Overview
DropOnAir provides peer-to-peer WebRTC voice and video calling. Signalling is relayed through the SDK WebSocket connection; media flows directly between peers. Call signalling APIs are available on all platforms: JavaScript, Android, and iOS.
Architecture
Signalling
SDP offer/answer and ICE candidates travel over the existing SDK WebSocket. No separate signalling server needed.
Peer-to-Peer Media
Audio and video stream directly between clients via WebRTC. DropOnAir never touches media content.
Minute Tracking
Call duration is tracked server-side. Minute quotas and overage are enforced per your plan.
Call flow
- 1. Caller calls
client.startCall(calleeUserId) - 2. Callee receives
CALL_INVITEevent, present it in your UI - 3. Callee calls
client.acceptCall(callId)orclient.rejectCall(callId) - 4. WebRTC SDP offer/answer and ICE candidates exchanged via relay
- 5. Both sides receive
CALL_ACCEPTED, media flows directly - 6. Either side calls
client.endCall(callId)to hang up