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
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
PeerConnectioninstances 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:
| Component | State Model | Storage / Coordination |
|---|---|---|
| API & WebRTC Handlers | Stateless | Dynamic SDP exchange, horizontal pod scaling |
| Viewer Sessions & Anti-Hotlinking | Distributed Ephemeral | Redis Key-Value with TTL (SHA256 Token Binding) |
| Tenants, Stream Keys & Settings | Relational Persistent | PostgreSQL with connection pooling |
| Chat Presence & Room Locks | Distributed Pub/Sub | Redis Cluster Pub/Sub |
| DVR Final Recordings | Object Storage | Amazon S3 or Google Drive API |