How moonlight-stream/moonlight-qt works
Main Components
a. Frontend Layer:
• QML-based GUI components (app/gui/)
• User interface views (PcView, SettingsView, StreamSegue)
• Input handling system (app/streaming/input/)
b. Backend Layer:
• Computer management (app/backend/)
• Streaming session handling (app/streaming/)
• Authentication and pairing system (nvpairingmanager)
• Auto-update system (autoupdatechecker)
c. Streaming Components:
• Video pipeline (app/streaming/video/)
• Audio pipeline (app/streaming/audio/)
• Input handling (app/streaming/input/)
d. Hardware Acceleration Layer:
• Multiple renderer implementations:
• CUDA
• D3D11VA
• VAAPI
• VDPAU
• Metal (for macOS)
• Vulkan
┌─ User Interface Layer ─────────────────────┐
• QML Frontend │
• App View │
• PC View │
• Settings View │
• Backend Services ──────────────────────────┤
• Computer Manager │
• Identity Manager │
• Pairing Manager │
• Streaming Core ───────────────────────────┤
• Session Management │
• ┌─────────────┐ ┌──────────┐ ┌──────────┐ │
• Video Pipeline│ │ Audio │ │ Input │ │
• ┘ └──────────┘ └──────────┘ │
• Hardware Acceleration Layer ──────────────┤
• ┌────────┐ ┌────────┐ ┌────────┐ ┌──────┐ │
• CUDA │ │D3D11VA │ │ VAAPI │ │ More │ │
• ┘ └────────┘ └────────┘ └──────┘ │
• ┘
Important Relationships
• Bidirectional communication between UI and Backend Services
• Data flow from Backend Services to Streaming Core
• Hardware acceleration integration with video pipeline
• Input system interaction with both UI and streaming components
Implementation Details
• Version compatibility notes
• Support matrix for hardware acceleration methods
Additional Elements
• Supported platform badges
• Minimum requirements for each component
• Performance-critical paths