Commit f5886ab
Fix video playback position reset to 0:00 on full-screen close (#1922)
UniversalVideoGalleryItemNode.maybeStorePlaybackStatus persisted the playback
position from every MediaPlayerStatus delivered by the throttled status
subscription — including the teardown/reset status emitted when the full-screen
player is dismissed (timestamp ~0, with a freshly incremented seekId). That
status fell into the `else` branch and stored a position of 0.0, overwriting the
real saved position on every close. So the stored "resume" point was always 0
and the video always restarted at 0:00.
Persist only a genuine mid-video position; store the 0.0 "restart" sentinel only
when the video is actually near the end; and leave any saved position untouched
for timestamp <= 5s (which also covers the teardown reset that caused the bug).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6e370e0 commit f5886ab
1 file changed
Lines changed: 3 additions & 5 deletions
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2411 | 2411 | | |
2412 | 2412 | | |
2413 | 2413 | | |
2414 | | - | |
2415 | 2414 | | |
2416 | | - | |
2417 | | - | |
2418 | | - | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
2419 | 2418 | | |
2420 | | - | |
2421 | 2419 | | |
2422 | 2420 | | |
2423 | 2421 | | |
| |||
0 commit comments