Skip to content

Every account gets 10,000 free minutes every month for video, voice and chat in your app.How the free minutes work

Article · Web

WebRTC API or a Hosted RTC SDK: What to Choose

What the browser's WebRTC API gives you, what it leaves to you (signalling, TURN, a media server, mobile builds) and when a hosted RTC SDK is the better fit.

Author
VoltKit
Published
Reading time
6 min read

WebRTC is the part of every modern browser that sends live audio and video between two endpoints with low delay. It is an API, not a service: it gives an app the pieces of a call, and leaves the servers, the rooms and the rules to whoever builds it. A hosted RTC SDK such as VoltKit RTC wraps the same WebRTC in a service that runs those servers for you. This article sets out what each one gives you and what it leaves to you, so you can tell which fits your app.

What the browser's WebRTC API gives you

  • Capture: getUserMedia opens the camera and microphone, with echo cancellation, noise suppression and automatic gain built in.
  • Transport: RTCPeerConnection sends and receives media over the network with codecs every browser shares (Opus for audio; VP8 and H.264 for video, which browsers must support), and adapts the bitrate to the connection.
  • Encryption: media is always encrypted (DTLS-SRTP); there is no unencrypted mode.
  • NAT traversal: ICE tries every path between the two ends, using STUN to learn a public address and TURN to relay media when no direct path works.
  • Data channels: RTCDataChannel carries messages between the same two ends.

That is a lot, and it is free. It is also, deliberately, only the media layer between two endpoints.

What it leaves to you

  • Signalling. Before any media flows, the two ends must exchange session descriptions (an offer and an answer) and network candidates. The standard does not say how: you build and run the server that carries them, usually over a WebSocket, and decide who may call whom.
  • STUN and TURN servers. ICE needs servers to talk to. STUN is light; TURN is not, because a relayed call's media passes through it in both directions.
  • A media server for groups. Two people can connect directly. Beyond a few, a mesh breaks down (below) and you need a server that receives each stream and forwards it.
  • Rooms and permissions. Who is in a room, who may speak or show video, how a host mutes or removes someone, and how your backend proves who a user is.
  • Reconnection. Phones change networks and laptops sleep. Rejoining a room, publishing again and catching up on what changed is the app's job.
  • Mobile apps. Native Android and iOS apps need WebRTC built for those platforms (Google's libwebrtc), plus the platform's own rules for audio sessions, background running and permissions.
  • Records of what happened. Who joined, for how long and why they left, for your billing and your support team.

Mesh or a forwarding server: the upload formula

In a mesh, every participant sends a copy of their media to every other one. With n people each sending at a bitrate of b, each person uploads (n − 1) × b and downloads (n − 1) × b. Six people sending video at 1.5 Mbps each means 7.5 Mbps of upload per person, and every new participant adds another copy to everyone's upload.

With a selective forwarding unit (SFU), each participant uploads one copy, b, to a server, which forwards it to the others without decoding or mixing it. Downloads stay at up to (n − 1) × b, and the server can send each viewer a smaller copy (simulcast) or pause a stream nobody is showing. That is why group calls, voice rooms and live rooms with an audience run on forwarding servers.

TURN and bandwidth, as formulas

Data volume follows from the bitrate: one stream at b Mbps for an hour is b × 3,600 ÷ 8 = 450 × b megabytes. A relayed participant's media crosses the TURN server on the way in and on the way out, so a TURN server's traffic is the sum of every relayed stream, both directions. A media server's outbound traffic grows with the number of viewers, because every viewer receives their own copy. These two lines, outbound bandwidth and the machines that carry it, are most of what self-hosting costs, along with the people who run them.

When self-hosting makes sense

Open-source media servers exist and are mature: mediasoup, Janus, Jitsi Videobridge and LiveKit's server among them. Running one makes sense when you have the people to operate it across the regions your users are in, need control over every part of the stack or where the media goes, and can carry the on-call load. You then pay for servers and bandwidth instead of a per-minute price, and you own the upgrades, the scaling and the outages.

What a hosted RTC SDK does instead

A hosted SDK runs the signalling, the media servers and the relays, and gives your app a room instead of a peer connection. In VoltKit RTC:

  • Your backend mints a short-lived token for each user with the role it decides, as in a token server; the app joins the room over a WebSocket and sends and receives media over WebRTC.
  • VoltKit's media servers forward each publisher's tracks to the room, the way an SFU does, and never mix them; the React, React Native, Flutter and Android SDKs receive each video at the size it is shown and pause a hidden one.
  • When a network blocks the direct path, media goes through VoltKit's relay (TURN) on port 3478, over UDP or TCP.
  • The SDKs handle reconnection, and signed webhooks tell your backend when people join and leave and when rooms end.
  • SDKs cover the browser, React, React Native, Flutter and Android, with server SDKs for Node.js, Python, Go, PHP and Java; the quickstart goes from sign-up to a call.

What you still build is your product: matching, profiles, payments, moderation rules and the interface.

What each choice costs

Self-hosting costs the formulas above plus the team. A hosted service charges for usage. VoltKit RTC bills each connected participant per second at the rate of the media they use: standard voice is ₹39 (≈ $0.41) per 1,000 participant-minutes, and Full HD video with HD audio is ₹99 (≈ $1.04).

A 30-minute video call with 10 people

10 people × 30 minutes = 300 participant-minutes

300 participant-minutes × 99 ÷ 1,000 = 29.7 credits, ₹29.70 (≈ $0.31) at today's rate

Full HD Video + HD Audio: 99 credits per 1,000 participant-minutes. Billed per second, so a 7½-minute call costs 7½ minutes.

Prices are in Indian rupees; dollar figures are approximate, at ₹95 per US dollar on 24 October 2026, for orientation only. You are billed in rupees.

Chat messages, API calls, tokens and webhooks are not billed. The pricing in India page works through more sessions, and the LiveKit comparison sets VoltKit's rates beside a service built on an open-source server.

How to choose

Choose the WebRTC API on its own for a call between two people inside your own web app, where you can run a small signalling server and a TURN server. Choose a self-hosted media server when you have the operations team and need control over the stack. Choose a hosted RTC SDK when you want rooms, roles, mobile apps and group calls working this month, and would rather pay for minutes than run media servers. See VoltKit RTC for what the service covers, and how to choose a video calling SDK for a checklist to compare hosted services with.

Frequently asked questions

Is WebRTC free to use?

The API is free and built into every major browser. What costs money is what runs around it: a signalling server, STUN and TURN servers, a media server once calls have more than a few people, and the people who keep them running. A hosted service charges for the same work as a usage price instead.

Do I need a server for a WebRTC video call?

Yes, even for two people. The two browsers have to exchange their session descriptions and network candidates before media can flow, and the standard leaves that signalling to you. Most calls also need a STUN server, and a TURN server for networks where no direct path works.

What is the difference between a mesh and an SFU?

In a mesh every participant sends a copy of their media to every other participant, so with n people each one uploads n − 1 copies. With a selective forwarding unit (SFU) each participant uploads one copy to a server, which forwards it to the others without mixing it, so the upload stays the same as the call grows.

When does self-hosting an open-source media server make sense?

When you have people to run it: servers in the regions your users are in, TURN, monitoring, upgrades and on-call. In return you control the whole stack and pay for servers and bandwidth rather than per minute. Without that team, a hosted SDK is usually the shorter path.

Does a hosted RTC SDK still use WebRTC?

Yes. VoltKit RTC's SDKs join a room over a WebSocket and send and receive media over WebRTC; the service runs the signalling, the media servers and the TURN relay, and the SDKs handle reconnection.

How is a hosted RTC SDK billed?

Each service has its own model. VoltKit RTC bills each connected participant per second at the rate of the media they use, from a prepaid wallet in rupees; chat messages, API calls, tokens and webhooks are not billed.

← Back to Learn

VoltKit RTC

Video and voice calls in your app

VoltKit RTC is an API and SDKs for live video, voice and chat: your server creates rooms and tokens, VoltKit runs the media, and you pay in rupees by the participant-minute.

Every account gets 10,000 free participant-minutes every month, shared by all your projects, at any quality. How the free minutes work

Standard voice from ₹39 (≈ $0.41) and Full HD video with HD audio from ₹99 (≈ $1.04) per 1,000 participant-minutes. Chat is included.

SDKs:JavaScriptReactReact NativeFlutterAndroidServer SDKs for Node.js, Python, Go, PHP and Java

You might also like

Something useful from another corner of VoltKit.