Repository navigation
Description
Problem
ControlFS has #61 for a basic in-app video preview (play/pause, seek, full screen). A preview is insufficient for watching a full movie or episode from a couch with a controller: users also need a clear timeline, track and subtitle controls, playback feedback, and reliable resume behavior.
Goal
Add a full-screen, controller-first local video player, drawing on the interaction patterns of Xbox and PlayStation media players: a distraction-free viewing surface, an overlay that appears on input and fades away, legible controls at TV distance, and predictable focus. Use original ControlFS visuals, icons, and wording; do not copy console assets or screens.
Requirements
- Open a supported local video from Grid or List into the player, without losing the current folder, focus, selection, or existing Open/Open with behavior.
- Full-screen playback with an overlay showing title, elapsed/remaining time, progress, play/pause, seek, volume/mute, subtitle state, and active audio track. The overlay can be summoned with a controller button and fades after inactivity without stealing focus from a dialog.
- Controller navigation for play/pause, bounded seek backward/forward (with visible preview of the target time), timeline scrubbing, volume/mute, and Back to the file list. Keep mappings consistent with the active controller's dynamic prompts and allow the existing controller remapping flow to apply.
- Enumerate and select audio tracks and embedded or locally available subtitles when the playback backend exposes them; provide subtitle on/off and readable subtitle styling. Hide or explain unavailable controls instead of displaying actions that do nothing.
- Remember playback position locally per file and offer Resume or Start over for a partially watched video. Do not resume a different file because it shares the same name; allow the user to clear saved progress.
- Handle end of video, buffering/seeking, unsupported codecs, missing files, and playback errors without trapping controller focus. Stop playback and release resources when leaving the player.
- Work at common TV/handheld sizes and respect the existing accessibility and visual focus rules. Preserve every existing file-management feature.
- Use Windows-supported playback capabilities initially; do not promise playback for codecs that are not installed or otherwise supported. No remote streaming, DRM bypass, media library, or external service integration is required in this issue.
Controller UX
- Open video → full-screen player; show controls briefly.
- Confirm/primary action toggles Play/Pause; Left/Right seek while the player surface is focused; open the timeline overlay for larger jumps.
- Navigate overlay actions with D-pad or stick; Back dismisses an overlay first, then returns to the same file and focus in ControlFS.
- Display button prompts for the connected controller family (Xbox, PlayStation, Nintendo, or generic) using the existing dynamic prompt system. The exact button assignments should follow current ControlFS conventions rather than hard-coded console labels.
Acceptance Criteria
- A supported local MP4 plays full screen from both Grid and List, with smooth controller access to pause, seek, volume, subtitles/tracks when present, and Back.
- The overlay is readable from TV distance, auto-hides during playback, reappears on controller input, and never obscures or steals focus from an error or selection dialog.
- Opening a partly watched file offers Resume/Start over; returning from the player restores the same folder and focused file.
- An unsupported file or unavailable track shows a clear message, and the user can return to the file list without restarting ControlFS.
- The controls and prompt glyphs correspond to the active controller family; all supported interactions are available without a mouse or keyboard.
Testing
Controller journey tests for focus, overlay, seek boundaries, closing and resume state; playback integration/manual checks on Windows with a supported MP4, a video with multiple audio/subtitle tracks, and an unsupported file. Test Grid and List at TV and handheld resolutions.
Dependencies
- Depends on feat: add in-app video preview #61 (basic in-app video preview and playback foundation).
- Reuses feat: add dynamic controller button prompts to action bar #34/enhancement: make the action bar fully context-sensitive #35 (dynamic/contextual controller prompts) and existing controller focus/navigation.
- Related epic: epic: preview and editing #91 (preview and editing); roadmap: tracking: ControlFS roadmap prioritized with MoSCoW #95.
MoSCoW priority: Won't have for 1.0 (planned for a later release). Its foundation #61 is also Won't have for 1.0, and users can use the existing Open with Windows flow until the player is ready.
Activity