Skip to content

feat: add cross-platform SDL3 clients - #381

Draft
ReenigneArcher wants to merge 16 commits into
masterfrom
codex/cross-platform-client
Draft

ReenigneArcher wants to merge 16 commits into
masterfrom
codex/cross-platform-client

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

This draft records the initial shared SDL3 client for Windows, Linux, macOS, Android and Android TV, iOS, and Apple TV. The original Xbox retains its nxdk build and console-specific streaming path.

  • Share the shell, host pairing, session code, input routing, and assets across the new clients. Desktop builds can use the pinned LizardByte/build-deps FFmpeg archives.
  • Negotiate H.264, HEVC, or AV1 in SDR using the host and decoder capabilities. Add platform hardware decoding with software fallback and profiles up to 4K at 120 FPS.
  • Route mapped gamepad input and supported rumble, motion, battery, LEDs, and touchpads. Backport Steam Controller 2 trigger clicks and haptic effects to SDL 3.4.18.
  • Add parallel platform builds, a Linux Flatpak manifest, Windows Azure Artifact Signing, and macOS DMG signing and notarization. The Apple mobile jobs build simulators, and the Android job builds a shared ARM64 phone and TV debug APK.
  • Keep Winsock initialized for the full request, send the stream key ID in the format Sunshine expects, and surface stream-start errors in the client.

This is an initial implementation. Host setup uses manual IPv4 entry, hardware frames are copied into the SDL presentation path, and Steam Controller 2 digital trigger clicks and raw haptic effects still need streaming-protocol support.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • All 546 MinGW64 native tests passed with ctest --test-dir cmake-build-release --output-on-failure --parallel 6. Coverage includes the host and decoder format intersection, controller slots, socket startup, and launch and resume key IDs.
  • Built the Windows x64 client with CLion's bundled CMake and the pinned FFmpeg archives. Confirmed pairing and local playback with Sunshine and exercised a 1080p AV1 Desktop stream headlessly. The Windows link reports duplicate C++ section warnings from the prebuilt FFmpeg dependencies.
  • Built and launched the Linux x64 client headlessly. Built the Android ARM64 debug APK and checked the phone and TV launcher entries. Rebuilt the original Xbox ISO during integration.
  • Strict Dockle API documentation, workflow lint, and Flatpak AppStream metadata validation passed. Apple builds and signing, Windows signing, the full Flatpak bundle, and physical device and controller testing remain pending.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.14286% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.60%. Comparing base (af34ad6) to head (63b414e).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/network/host_pairing.cpp 59.25% 5 Missing and 6 partials ⚠️
src/app/client_state.cpp 50.00% 0 Missing and 2 partials ⚠️
src/ui/shell_layout.cpp 94.28% 0 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #381      +/-   ##
==========================================
+ Coverage   75.11%   75.60%   +0.49%     
==========================================
  Files          79       79              
  Lines        8495     8544      +49     
  Branches     3620     3636      +16     
==========================================
+ Hits         6381     6460      +79     
- Misses        906     1059     +153     
+ Partials     1208     1025     -183     
Flag Coverage Δ
Linux 74.90% <81.69%> (+0.49%) ⬆️
macOS 64.55% <77.38%> (+0.52%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/app/client_state.h 98.73% <100.00%> (+0.03%) ⬆️
src/app/settings_storage.h 100.00% <ø> (ø)
src/input/stream_input.cpp 94.79% <100.00%> (+0.06%) ⬆️
src/input/stream_input.h 100.00% <ø> (ø)
src/input/ui_input.h 100.00% <100.00%> (ø)
src/startup/storage_paths.cpp 81.81% <ø> (ø)
src/startup/video_mode.cpp 63.82% <ø> (ø)
src/startup/video_mode.h 0.00% <ø> (ø)
src/streaming/video_codec_selection.cpp 100.00% <100.00%> (ø)
src/ui/asset_path.cpp 100.00% <ø> (ø)
... and 5 more

... and 12 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af34ad6...63b414e. Read the comment docs.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants