WebRTC Telehealth Portal

WebRTC Portal (Ant Media Server)

For a telehealth startup, we built a secure WebRTC portal providing one-to-one and group consultations, call forwarding, and screen sharing – all optimized for low latency and reliability. The platform supports 500+ concurrent users with < 200ms glass-to-glass latency, even on mixed networks and devices.

Leveraging Ant Media Server as the media backbone, we implemented TURN/STUN, adaptive bitrate, and high-availability clusters. End-to-end encryption and role-based access controls were designed to align with HIPAA-style privacy expectations for patient–doctor sessions, including waiting rooms, consent flows, and audit-friendly logging.

Group video calls Call routing & forwarding Screen sharing Secure & compliant
Impact at a glance

500+

Concurrent session capacity

< 200ms

End-to-end latency

99.9%

Target availability

Multi-role

Patients, doctors, admins

Clinics moved from generic meeting links to a branded telehealth experience with controlled access, integrated scheduling, and a supportable video stack.

Problem

The telehealth provider faced several constraints:

  • Generic video tools with weak control over rooms, identity, and routing.
  • Latency and reliability issues during multi-party consultations.
  • No native support for waiting rooms, triage, or escalation between doctors.
  • Compliance and audit concerns around recordings and access logs.
Solution

We delivered a purpose-built WebRTC portal:

  • Ant Media Server cluster for low-latency SFU-based video routing.
  • Branded web portal for patients and practitioners with role-based access.
  • Group calling, call forwarding, screen sharing, and chat in the same UI.
  • Waiting rooms, appointment-based session entry, and soft hand-offs between doctors.
Outcome

The new portal enabled:

  • Reliable consultations across devices and networks with consistent quality.
  • Fewer dropped calls and escalations to phone-only backup channels.
  • Better patient experience via streamlined invitations and one-click join links.
  • Improved operational confidence with monitoring, logs, and clear ownership.

Architecture overview

The WebRTC portal is built as a secure, horizontally scalable stack, with Ant Media Server managing media streams and the application layer handling authentication, routing, and UX.

  • Authentication & scheduling – Patients and doctors authenticate via the portal, with appointments and session tokens created ahead of time.
  • Signaling server – A custom signaling layer coordinates room creation, participant join/leave, call forwarding, and role changes.
  • Media routing (Ant Media) – Ant Media Server acts as SFU, handling media negotiation, adaptive bitrate, and scaling for group calls.
  • TURN/STUN & network handling – TURN/STUN configuration ensures connectivity behind strict firewalls and NATs.
  • Monitoring & logging – Per-call metrics, quality stats, and access logs are collected for operations and compliance.
Key features in production
Telehealth-optimized rooms

Session layouts and controls tuned for doctor–patient interactions, including camera controls, mute, chat, and patient details within reach.

Call forwarding & escalation

Admins can transfer patients from reception to a doctor or invite a specialist into an ongoing call without forcing a re-join.

Screen sharing & file exchange

Clinicians can share reports, test results, and educational material directly within the session and annotate in real time.

Security & privacy controls

Encrypted transport, restricted join links, and time-bound tokens ensure only authorized participants can access each room.

The architecture is designed so new features – e-prescriptions, intake forms, or EMR integrations – can be added without reworking the core WebRTC and media layers.

Real-time capabilities
  • WebRTC-based video, audio, and data channels.
  • Group sessions with dynamic speaker layouts.
  • Low-latency routing using Ant Media SFU.
  • Screen sharing and in-call messaging.
Engineering & infra
  • Ant Media Server cluster for scalable media routing.
  • Custom signaling service and API layer.
  • TURN/STUN servers for reliable connectivity.
  • Monitoring for call quality, uptime, and error rates.
Typical use cases
  • Telehealth clinics offering virtual consultations.
  • Specialist referrals and multi-doctor case reviews.
  • Remote follow-ups with screen-shared reports and labs.
  • Any business needing secure, branded WebRTC-based communication.