Skip to content

feat(videos): browse + download PS5 gameplay video clips (#97)#177

Merged
phantomptr merged 1 commit into
mainfrom
feat/video-clips-screen
Jul 6, 2026
Merged

feat(videos): browse + download PS5 gameplay video clips (#97)#177
phantomptr merged 1 commit into
mainfrom
feat/video-clips-screen

Conversation

@phantomptr

Copy link
Copy Markdown
Owner

Description

Implements #97 — a Video clips screen, the video counterpart of the existing Screenshots screen. Lists gameplay video captures from the PS5, with checkbox multi-select, per-row + bulk download to your computer, and an inline <video> preview (desktop). Unlike screenshots (HDR .jxr needing PNG conversion), clips are already playable formats and download as-is.

Full stack — all additive (a new frame, no change to existing paths)

  • payload/src/runtime.cFTX2_FRAME_LIST_VIDEOS (166/167) + walk_videos() (walks /user/av_contents/video for .webm/.mp4/.mov, same {path,size,mtime} JSON as walk_screenshots) + dispatch. Builds -Werror.
  • ftx2-protoListVideos/ListVideosAck variants + decode arm.
  • ps5upload-core/saves.rslist_videos() (reuses the ScreenshotList type — identical shape).
  • src-taurivideos_list Tauri command + registration.
  • client/api/ps5.tsvideosList().
  • client/screens/Videos — the screen (reuses startTransferDownload + the stale-host guard + host-change-reset patterns from Screenshots).
  • App.tsx route + Sidebar nav entry.
  • i18n — 16 keys, allowlisted for all 17 non-English locales.

⚠️ Needs hardware confirmation

The exact on-console av_contents/video path + .webm/.mp4 extension set is the documented Sony layout but hasn't been verified against a live console in-house — this mirrors the historical screenshot bug where a wrong extension listed 0 files. If the Clips tab is empty with clips present, the fix is to adjust walk_videos()'s root / extension filter in runtime.c (clearly commented there). Everything else (download, preview, selection) reuses proven screenshot plumbing.

Type of Change

  • New feature (non-breaking, additive)

Testing

payload -Werror build + engine fmt/clippy/test + client typecheck/lint/763 tests/i18n(18 langs)/vite build all green.

Closes #97.

🤖 Generated with Claude Code

Adds a "Video clips" screen mirroring Screenshots for gameplay video
captures — the video counterpart users asked for. Checkbox multi-select,
per-row + bulk download to the host, and an inline <video> preview
(desktop). Clips are already playable formats, so unlike screenshots
there's no .jxr → PNG conversion step.

Full stack, all additive (a new frame — no change to existing paths):
- payload/src/runtime.c: FTX2_FRAME_LIST_VIDEOS (166/167) + walk_videos()
  (walks /user/av_contents/video for .webm/.mp4/.mov, same JSON shape as
  walk_screenshots) + handle_list_videos dispatch. Builds -Werror.
- ftx2-proto: ListVideos/ListVideosAck FrameType variants + decode arm.
- ps5upload-core/saves.rs: list_videos() (reuses ScreenshotList type).
- src-tauri: videos_list Tauri command + registration.
- client/api/ps5.ts: videosList() wrapper.
- client/screens/Videos: the screen (reuses startTransferDownload +
  stale-host guard + host-change reset patterns from Screenshots).
- App.tsx route + Sidebar nav entry.
- en.ts + i18n-known-missing.json: 16 keys, allowlisted for all 17 locales.

HW NOT CONFIRMED: the exact av_contents/video path + extension set is the
documented Sony layout but hasn't been verified against a live console
(mirrors the screenshot bug where a wrong extension listed 0 files). If
the Clips tab is empty with clips present, adjust walk_videos()'s root /
extension filter in runtime.c — clearly commented there.

payload -Werror + engine fmt/clippy/test + client typecheck/lint/763
tests/i18n(18)/build all green. Desktop fmt on my files clean (a stray
local-rustfmt diff in an untouched file is a version-skew false positive;
that file is byte-identical to CI-green main).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@phantomptr phantomptr merged commit 8893532 into main Jul 6, 2026
23 checks passed
@phantomptr phantomptr deleted the feat/video-clips-screen branch July 6, 2026 05:04
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.

same thing for videos like screenshots

1 participant