Webplayer bug fixes #46

Merged
quoije merged 3 commits from cursor/webplayer-bug-fixes-aea1 into 2026-video.backend 2025-12-22 02:20:31 -05:00
quoije commented 2025-12-22 01:58:11 -05:00 (Migrated from github.com)

Fix video playback resume logic to prevent getting stuck and simplify the saving progress UI to be icon-first.

The previous resume logic in app_player.js would mark progress as "restored" prematurely, before the video's duration was reliably available (e.g., NaN or Infinity), leading to the "Prendre la reprise" state being stuck. This PR ensures restoration retries until a valid duration is present. Additionally, the saving UI was made less verbose by replacing status text with dynamic icons (spinner, check, warning) and minimal text, improving user experience.


Open in Cursor Open in Web

Fix video playback resume logic to prevent getting stuck and simplify the saving progress UI to be icon-first. The previous resume logic in `app_player.js` would mark progress as "restored" prematurely, before the video's duration was reliably available (e.g., `NaN` or `Infinity`), leading to the "Prendre la reprise" state being stuck. This PR ensures restoration retries until a valid duration is present. Additionally, the saving UI was made less verbose by replacing status text with dynamic icons (spinner, check, warning) and minimal text, improving user experience. --- <a href="https://cursor.com/background-agent?bcId=bc-014b787b-ff2f-4b44-8fb5-e91bc411f748"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-014b787b-ff2f-4b44-8fb5-e91bc411f748"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a>
cursor[bot] commented 2025-12-22 01:58:12 -05:00 (Migrated from github.com)

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Cursor Agent can help with this pull request. Just `@cursor` in comments and I'll start working on changes in this branch. <sub>[Learn more](https://cursor.com/docs/background-agent/web-and-mobile) about Cursor Agents</sub>
Sign in to join this conversation.