Skip to content

Hosted card keeps showing "playing" for up to 5 minutes after the player closes #1100

Description

@rowkav09

Same cause as #1099 on the hosted side. src/hosted-loop.js only reacts to a frozen position through isStuck (stuckAfterMs, 300000), which uploads one idle state. Until then every poll uploads the session as playing with a frozen positionMs, so the hosted card shows a live track after the player has closed without a clean stop.

Repro: createHostedLoop with a getPresence that returns a playing presence with a fixed positionMs; every tick before 300s pushes state: "playing".

Expected: once the position has not moved for the same stall window as the Discord loop, upload the item as paused at that position, then keep the existing idle upload at 300s. Moving playback goes back to playing.

Fix: same shape as the Discord change for #1099: a stallAfterMs option below stuckAfterMs, with a loop test that fails on current main.

Priority: Medium.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions