Skip to content

Fix the video failing when seeking while it wakes from sleep - #104

Merged
seaweeduk merged 1 commit into
masterfrom
fix/playback-frame
Nov 22, 2026
Merged

seaweeduk merged 1 commit into
masterfrom
fix/playback-frame

Conversation

@seaweeduk

Copy link
Copy Markdown
Owner

On the Frame the video track closes while the headset sleeps and reopens on wake with a seek back to the saved position. If you seek while that resume is still running, the resume seeks again once its first picture shows. While the headset is visible, the player used one 10 s deadline for opening the track and all the resume seeks after it. So when opening and the first seek together took close to 10 s, the next resume seek failed on the spot with "decoder transition timed out", and the video stopped. A slow open and first seek on a network file, then one more seek, was enough.

  • PlayerSleep::resumeSeekSent starts a fresh deadline for each resume seek it sends, as closing and opening the track already do. A seek that never finishes still times out.
  • The thumbnailer no longer tries to create a CUDA device on the Frame. The Frame's FFmpeg is built without CUDA, so the attempt always failed, and it was tried again on a later video after a minute. Desktop behaviour is unchanged.

Resume timeout with a 4.5 s open, a 5 s first seek, and a deadline check 501 ms after submitting the chained seek:

Before After
Chained resume seek Fails with "decoder transition timed out" Still waiting for the seek
A seek, open or close that never answers Times out Times out

Important

AI disclosure

Model Variant Role
anthropic/claude-opus-5-5 high Implementation
openai/gpt-6.2-astra high Independent review

Agent harness OpenCode 2.3.2

@seaweeduk seaweeduk added the fix Bug fix (release notes: Fixes) label Nov 22, 2026
@opencode-agent

Copy link
Copy Markdown

LGTM 👍

Each submitted resume seek now gets its own 10-second deadline, so a slow track open or earlier seek can’t exhaust the next seek’s time budget. User input alone doesn’t reset the timer, so a stalled seek still times out while the headset is visible. On the Frame, thumbnails use the existing CPU decode path without attempting CUDA; desktop behavior is unchanged.

github run

@seaweeduk
seaweeduk changed the base branch from refactor/wave-5 to master November 22, 2026 21:00
@seaweeduk
seaweeduk merged commit bf9f9a4 into master Nov 22, 2026
@seaweeduk
seaweeduk deleted the fix/playback-frame branch November 22, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix (release notes: Fixes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant