Docs/Stream/Architecture & Concepts

Stream Architecture & System Concepts

Vyntech Stream is a multi-tenant, zero-trust live broadcast and real-time interactive messaging platform built in Go. It ingests video feeds via RTMP, SRT, and WebRTC (WHIP), and distributes ultra-low latency feeds via an internal Selective Forwarding Unit (SFU) alongside standard ABR HLS.

System Topology

Ingest Layer
📡 RTMP (TCP Port 1935)
🚀 SRT (UDP Port 6000)
🌐 WebRTC WHIP (HTTPS 443)
Vyntech Stream Core
Media Pipeline & SFU
AAC → Opus Transcoder
Redis State & Anti-Hotlink
Chat Moderation Gateway
Egress & Storage
⚡ WebRTC SFU (UDP 50000–50100)
📺 Multi-bitrate HLS (HTTPS)
💬 WebSocket Chat (WSS 443)
🗄️ S3 / Google Drive DVR

Core Platform Modules

Media Ingest & Processing Engine

Handles raw stream ingests via RTMP, SRT bridges, and WHIP HTTP endpoints.

  • AVC to RTP Packer: Demuxes FLV video payloads, extracts SPS/PPS parameter sets, and repacks Annex-B H.264 into RTP packets.
  • Audio Transcoding Engine: Transcodes live AAC streams into Opus RTP packets on the fly to support browser WebRTC specifications.
  • WebRTC SFU: Forwards video/audio RTP tracks across isolated PeerConnection instances with sub-second latency.
  • HLS Egress: Bridges into FFmpeg to generate multi-variant Adaptive Bitrate playlists and TS chunks.

Real-Time Chat & Moderation Gateway

A high-throughput WebSocket gateway providing sub-50ms message propagation, presence tracking, and strict moderation tools.

  • Redis State Sync: Synchronizes room locks, active presence counts, and per-user throttling timestamps across horizontally scaled pods.
  • Automated Moderation: Enforces slow-mode, duplicate message blocking, and regex/AI toxicity scoring.
  • Granular Moderator Actions: Delete message, user timeouts, chat bans, IP bans, fingerprint bans, and instant stream-wide connection severance.
  • Compliance Audit: Records all moderation interventions asynchronously to PostgreSQL.

DVR & Cloud Storage Exporter

When auto-recording is enabled, the DVR module captures the incoming RTMP feed using zero-transcode (-c copy) FFmpeg sessions. Upon stream completion, finalized MP4 assets are uploaded to Amazon S3 or Google Drive under isolated tenant namespaces (<tenantID>/<streamID>/output.mp4).

Interactive Rooms & Meeting Engine

Multi-party bidirectional WebRTC conferencing providing sub-second audio/video sharing, waiting lobby admission, dynamic screen share spotlights, and on-air guest bridging.

  • Waiting Lobby: Non-host attendees wait in a secure holding room until admitted by room hosts.
  • Screen Share Spotlight: Automatically expands presentation feeds with responsive participant sidebars.
  • Bring to Stream: Injects greenroom guest feeds directly into live broadcasts.
  • Composite Recording: Automatically mixes multi-party video tiles into single MP4 recordings.

Virtual Telephony & Number Marketplace

Enables organizations to lease virtual local, toll-free, and mobile phone numbers and conduct encrypted browser-based in-app calls with complete duration and history logging.

Third-Party Integrations Hub

Tenant-level connectors for Google Calendar, Google Drive, Microsoft Outlook, and Slack. All credentials and configurations are managed securely within your organization account.

Zero-Trust Security & RBAC Enforcer

Enforces Zero-Trust token binding. On the viewer's first request, their authentication token is securely bound to their verified origin context. If the token is shared or used from another device, access is blocked immediately.

Scalability & Shared State

Vyntech Stream is designed as a stateless cluster node orchestrated behind an ingress load balancer:

ComponentState ModelStorage / Coordination
API & WebRTC HandlersStatelessDynamic SDP exchange, horizontal pod scaling
Viewer Sessions & Anti-HotlinkingDistributed EphemeralRedis Key-Value with TTL (SHA256 Token Binding)
Tenants, Stream Keys & SettingsRelational PersistentPostgreSQL with connection pooling
Chat Presence & Room LocksDistributed Pub/SubRedis Cluster Pub/Sub
DVR Final RecordingsObject StorageAmazon S3 or Google Drive API
← Quickstart & SetupMedia Engine & Ingest →

We use cookies and similar technologies to measure traffic and improve the site. You can choose which categories to allow. Manage Preferences.