Skip to content

Downloads: offline video resume ignores the position the server already accepted #963

Open

Description

@Quick104

What happened

On an Android phone, a downloaded video whose last position already reached the server resumes offline from the server answer cached on the device, which can be older than where the phone stopped, or from the start.

Steps to reproduce

  1. Download a movie on an Android phone. Open its detail page online, then watch it from the download to about 40:00 while online, so the position syncs.
  2. Without opening the detail page again, turn off Wi-Fi and mobile data.
  3. Play the downloaded movie again.

Expected behavior

It resumes at 40:00, the newest position this device knows, as downloaded audiobooks do offline after #961.

Actual behavior

It resumes from the position cached with the detail page (from before step 1), or from the start.

Silo version / commit

silo-android main at 40d34e6 (behavior since #847). #961 keeps the accepted position on the device, marked sent, but only the audiobook player reads it offline.

Clients affected

Android phone and tablet (downloaded video).

Technical notes

  • PlayerViewModel offline resume reads localPosition(contentId, fileId, includeSent = true), which goes through UserItemStateDao.pendingProgressForContentIds. That query requires a queued or in-flight SET_POSITION op, and an accepted op is deleted, so the kept row is never returned.
  • A fix could let the offline read return the file's marked row when no op remains, preferring it over the cached detail.
  • Source: found in review of fix(audiobooks): send offline listening on downloaded books to the server #961. The fix changes lines that PR changes, so it follows that PR.

AI disclosure

Activity

  1. added
    bug
    on Nov 16, 2026
  2. added
    impact: polish
    priority: P2
    triaged
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimpact: polishpriority: P2triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions