How zaarrg/stremio-community-v5 works
Stremio Desktop is a Windows native host for the Stremio Web v5 interface, with mpv playback, a local Node streaming server, and desktop integrations. The principal flow starts in the app, initializes its settings and runtime services, then presents the web UI; UI events can dispatch playback commands to mpv. The graph also preserves documented capabilities such as updates, extensions, tray controls, and Discord presence. Relationships are based on the supplied excerpts, SOURCE INDEX references, and README; unsampled implementation details are not assumed.
Main entry points: main.cpp App Startup · mainwindow.cpp Window Event Bridge · webview.cpp WebView2 Host · player.cpp mpv Player
Components 15
Application Runtime
- App Startup
src/main.cpp - Shared Runtime State
src/core/globals.cpp - Settings
src/utils/config.cpp
Web Interface
- WebView2 Host
src/webview/webview.cpp - Stremio Web UI
- Window Event Bridge
src/ui/mainwindow.cpp - Web Extensions
src/utils/extensions.cpp
Playback
- mpv Player
src/mpv/player.cpp - Streaming Server
src/node/server.cpp
Desktop Features
- System Tray
src/tray/tray.cpp - Splash Screen
src/ui/splash.cpp - Discord Presence
src/utils/discord.cpp
App Services
- Auto Updater
src/updater/updater.cpp - Crash Logging
src/utils/crashlog.cpp
Other components
- User
Connections 20
- User → App Startup: launches
src/main.cpp - App Startup → Settings: loads settings
src/main.cpp - App Startup → Discord Presence: initializes
src/main.cpp - App Startup → Auto Updater: starts updater
src/main.cpp - App Startup → Splash Screen: creates splash
src/main.cpp - App Startup → mpv Player: initializes
src/main.cpp - App Startup → Streaming Server: starts server
src/main.cpp - App Startup → WebView2 Host: initializes
src/main.cpp - App Startup → Crash Logging: logs failures
src/main.cpp - App Startup → Shared Runtime State: uses shared state
src/main.cpp - WebView2 Host → Stremio Web UI: hosts UI
README.md - WebView2 Host → Window Event Bridge: routes messages
src/webview/webview.cpp - Window Event Bridge → mpv Player: dispatches commands
src/ui/mainwindow.cpp - Window Event Bridge → Discord Presence: updates presence
src/ui/mainwindow.cpp - Window Event Bridge → Auto Updater: requests update
src/ui/mainwindow.cpp - Window Event Bridge → WebView2 Host: sends UI messages
src/ui/mainwindow.cpp - WebView2 Host → Web Extensions: sets up extensions
src/webview/webview.cpp - Window Event Bridge → System Tray: creates tray icon
src/ui/mainwindow.cpp - User → mpv Player: uses playback
- User → Streaming Server: plays streams