feat: emulator streaming -- streaming framework and pcsx2 integration#3211
Open
LoneAngelFayt wants to merge 44 commits intorommapp:masterfrom
Open
feat: emulator streaming -- streaming framework and pcsx2 integration#3211LoneAngelFayt wants to merge 44 commits intorommapp:masterfrom
LoneAngelFayt wants to merge 44 commits intorommapp:masterfrom
Conversation
Contributor
Author
|
here is the broker that goes into the pcsx2 container if you want to take a look at the api inside |
…equest to allow slot 10
…te on broker error
Contributor
Author
|
I've finished setting up the integration for dolphin as well, I'm going to split it out into a different PR for each integration There is thankfully minimal changes but I turn some hardcoding into variables Once you get done looking through this I'll adapt the others and put them in as I have them completed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this?
This is the start of a framework for streaming emulator gameplay directly in RomM using LinuxServer Docker containers as the backend. PCSX2 is the first one wired up but the goal is to expand this to support other emulators and containers over time.
When a streaming container is configured, a play button shows up on the game card. Clicking it opens an in-browser player that connects to a small HTTP broker running inside the container, which handles launching the ROM and managing the emulator process. The video stream output is captured, wrapped in an iframe and presented on the RomM page.
The player requires HTTPS since the broker connection won't work over plain HTTP due to browser mixed-content restrictions.
Changes
Added a new /streaming API router for session management (create, get config, release) that talks to the broker inside the container. Added a streaming section to the config schema (broker_host, broker_port, secret) along with updates to the config example. On the frontend there's a new stream player view, a Pinia store for session state, a route entry, and a conditional play button on the game card. Also updated docker-compose.yml and env.template to show how to run the container alongside RomM.
Feedback welcome
Happy to rethink the config shape, API design, or anything else based on your input.
AI disclosure: some files and code generated by Claude, but testing and corrections by me