Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Shyamalp16/CloudGaming/llms.txt

Use this file to discover all available pages before exploring further.

Welcome to CloudGaming

A high-performance, peer-to-peer cloud gaming and remote desktop platform that streams directly from your Windows PC to any browser with ultra-low latency.

What is CloudGaming?

CloudGaming is a WebRTC-based streaming platform that captures your screen and audio on a Windows host, encodes it using hardware-accelerated H.264 (NVENC/QSV/AMF), and streams it peer-to-peer to web clients. Input (keyboard and mouse) flows back over WebRTC DataChannels, enabling true real-time remote gaming and desktop access.
Perfect for: Game streaming, remote desktop access, cloud gaming services, and low-latency screen sharing applications

Key Features

Ultra-Low Latency

Sub-40ms glass-to-glass latency with direct P2P streaming, no relay servers required

Hardware Acceleration

FFmpeg-powered encoding with NVENC, Intel QSV, and AMD AMF support for high FPS at low CPU usage

Adaptive Quality

Dynamic bitrate control (8-80 Mbps) based on network conditions with WebRTC TWCC feedback

High Frame Rate

Support for 60-144 FPS capture and streaming for smooth gaming experiences

P2P Architecture

Direct peer-to-peer connections via WebRTC with Redis-based signaling for scalability

Real-Time Input

Bi-directional input injection with DPI-aware mouse handling and configurable policies

Process Audio Capture

Windows 11 process-specific audio loopback with Opus encoding (80kbps, 10ms frames)

Browser-Based Client

No installation required - clients connect via any modern web browser

Architecture Overview

The platform consists of four main components:

Host Runtime

C++ application with Go WebRTC bindings for capture, encoding, and streaming

Signaling Server

Node.js WebSocket server with Redis pub/sub for multi-instance scaling

Matchmaker

Automatic host discovery and session assignment with heartbeat monitoring

Web Client

Pure HTML/JavaScript WebRTC client with canvas rendering and input capture

Technology Stack

Host: C++ (WGC capture, FFmpeg encoding) + Go (Pion WebRTC)
Server: Node.js, ws, Redis, Express
Client: HTML5, WebRTC API, Canvas
Encoding: H.264 (NVENC/QSV/AMF), Opus audio
Networking: WebRTC (SRTP video/audio, DataChannels for input)

Quick Start

Get up and running in minutes

Architecture

Deep dive into system design

Configuration

Configure video, audio, and input settings

Use Cases

  • Cloud Gaming: Stream games from your powerful PC to any device
  • Remote Desktop: Access your work computer from anywhere
  • Game Development: Test games remotely during development
  • LAN Parties: Host gaming sessions without physical hardware
  • Content Creation: Stream high-quality gameplay for recording
Ready to get started? Head over to the Quick Start Guide to set up your first streaming session.

Build docs developers (and LLMs) love