Prompt
How do I add 1:1 video calls to an iOS app?
Latest observation
Nov 2, 2026
OpenAI APIWeb search: off
To add 1:1 video calling to an iOS app, you generally need four pieces:
- A real-time media stack to capture camera/mic and send audio/video
- Signaling to connect two users and exchange session info
- NAT traversal using STUN/TURN so calls work across networks
- UI/state handling for ringing, connecting, mute, camera switch, etc.
Fastest options
1) Use a video SDK
If you want the quickest path, use a provider like:
- Twilio Video
- Agora
- Vonage (OpenTok)
- Daily
- Zoom Video SDK
Pros:
- Much faster to ship
- Handles networking, NAT traversal, reconnects, device switching, quality adaptation
- Often includes iOS-specific tooling and docs
Typical flow:
- Your backend creates an auth token
- iOS app connects to provider with that token
- Users join the same room for a 1:1 call
Best if you want to build an app quickly and don’t need full control over media infra.
2) Build it yourself with WebRTC
If you want full control, use WebRTC on iOS.
You’ll need:
- WebRTC iOS framework
- A signaling server you run yourself (WebSocket, Firebase, etc.)
- STUN/TURN servers
- STUN helps peers discover public addresses
- TURN relays media when direct peer-to-peer fails
Typical call setup:
- Caller creates an offer
- Send offer via signaling server to callee
- Callee creates an answer
- Exchange ICE candidates
- Media flows peer-to-peer or via TURN if needed
This is more work, but gives you more control and may reduce vendor dependence.
What you need in the app
Permissions
Add to Info.plist:
NSCameraUsageDescriptionNSMicrophoneUsageDescription
UI features
For a 1:1 video call, you usually need:
- Local preview
- Remote video view
- Mute/unmute mic
- Switch camera
- End call
- Ringing / connecting / in-call states
Call flow
Common states:
- Idle
- Incoming call
- Outgoing call
- Connecting
- Connected
- Ended / failed
If using WebRTC: high-level architecture
Client side (iOS)
RTCPeerConnectionRTCMediaStream/ track management- Camera capture via
RTCCameraVideoCapturer - Audio session handling with
AVAudioSession
Backend
- Authentication
- User presence
- Signaling messages:
- offer
- answer
- ICE candidate
- call accept/reject
- hangup
Infrastructure
- STUN server
- TURN server, especially for mobile networks and enterprise Wi‑Fi
Minimal implementation approach
Option A: SDK-based
- Create app UI
- Add SDK package via Swift Package Manager / CocoaPods
- Get auth token from backend
- Join a room
- Render local and remote video views
- Add call controls
Option B: WebRTC-based
- Add WebRTC dependency
- Build signaling server
- Set up STUN/TURN
- Create peer connection
- Add local audio/video tracks
- Exchange offer/answer/candidates
- Handle app lifecycle and reconnects
Important iOS considerations
- Use
AVAudioSessioncorrectly or audio may fail/switch badly - Handle backgrounding carefully; video calls in background are limited
- Test on real devices, not just simulator
- Support permissions denied states gracefully
- Optimize for low bandwidth and network switching
Recommendation
If you’re building a normal product and want speed: use a video SDK.
If you need custom signaling/control and are comfortable with WebRTC complexity: build with WebRTC.
If you want, I can give you:
- a step-by-step Twilio/Agora/Daily implementation, or
- a full WebRTC iOS architecture + sample Swift code.