Skip to content

Enhance game hub with media captures and session metadata#197

Closed
Jayian1890 wants to merge 6 commits intoOpenCloudGaming:devfrom
Jayian1890:game-hub
Closed

Enhance game hub with media captures and session metadata#197
Jayian1890 wants to merge 6 commits intoOpenCloudGaming:devfrom
Jayian1890:game-hub

Conversation

@Jayian1890
Copy link
Copy Markdown
Collaborator

@Jayian1890 Jayian1890 commented Apr 6, 2026

This pull request introduces comprehensive improvements to media (screenshots and recordings) metadata handling, adds support for exporting media files, and enhances controller input handling and game switching UX in the renderer. The key changes are grouped below:

Media Metadata and Listing Enhancements

  • Introduced functions to read, write, normalize, and delete per-media metadata (including gameTitle and session statistics) alongside media files. This metadata is now persisted in .json files and associated with both screenshots and recordings. (opennow-stable/src/main/index.ts) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
  • Media listings (screenshots and recordings) now include the associated game title and session snapshot when available. The listing and search logic was updated to match on game titles as well. (opennow-stable/src/main/index.ts) [1] [2]
  • Added a summary object to media listings, aggregating capture counts and the latest session statistics for the UI. (opennow-stable/src/main/index.ts)

Media Export Feature

  • Implemented a new IPC handler and supporting logic for exporting media files, allowing users to save screenshots or recordings to a location of their choice. (opennow-stable/src/main/index.ts, opennow-stable/src/preload/index.ts) [1] [2] [3] [4]

Renderer/UI Improvements

  • Added support for a new controller "Start" input event, integrating it into the controller input handler logic. (opennow-stable/src/renderer/src/App.tsx) [1] [2]
  • Enhanced game switching UX by tracking additional pending game information (description and id) during transitions, and ensuring proper cleanup/reset of these fields. (opennow-stable/src/renderer/src/App.tsx) [1] [2] [3]

These changes collectively improve the fidelity and usability of media management in the app, and lay groundwork for richer media-related features in the UI.

@Jayian1890 Jayian1890 changed the title Enhance game hub with media captures and session metadata (fork:game-hub) Enhance game hub with media captures and session metadata Apr 6, 2026
@Jayian1890 Jayian1890 marked this pull request as ready for review April 6, 2026 15:09
@Jayian1890 Jayian1890 marked this pull request as draft April 6, 2026 15:20
- Implemented media export API in preload and shared interfaces.
- Added media export handling in ControllerLibraryPage for revealing, exporting, and deleting media.
- Enhanced game hub UI with session snapshots, action buttons for media management, and improved styling.
@zortos293
Copy link
Copy Markdown
Collaborator

any screenshots that you can post about it?

@Jayian1890
Copy link
Copy Markdown
Collaborator Author

any screenshots that you can post about it?

I'm working on the Media tab, then it'll be ready for review.

Screenshot 2026-04-07 at 10 38 31 AM

- Implemented `getMediaDataUrl` in OpenNowApi for resolving media data URLs for in-app playback/viewing.
- Updated IPC channels to include `MEDIA_DATA_URL` for media data URL requests.
- Enhanced media handling in the App component to manage media previews for screenshots and recordings.
- Added functionality to open media assets and handle media export and deletion in the ControllerLibraryPage.
- Improved UI components for media detail display and export browser interactions.
- Styled media viewer and loading states for better user experience.
@Jayian1890 Jayian1890 closed this Apr 11, 2026
@Jayian1890 Jayian1890 deleted the game-hub branch April 11, 2026 12:03
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