Skip to content

add automatic timeout to clear stale media rpc status #482

@rootdevss

Description

@rootdevss

currently when a media app is closed or playback stops unexpectedly the rpc status can get stuck showing media playing indefinitely with glitched symbols and timer continuing to count up

this is related to issue 470 where users report discord keeps showing media playing after stopping playback on apps like deezer

suggested improvement:
add a configurable timeout mechanism that automatically clears the rpc status if no media updates are received for a certain period like 30 seconds or 1 minute

this would help in cases where:

  • media apps crash or are force closed
  • apps dont properly send stop events
  • session callbacks fail to trigger

the timeout could be implemented in mediarpcservice by tracking the last update time and checking periodically if the status should be cleared

this would make the app more resilient to edge cases where media state gets out of sync

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions