dead8309 / dead8309/Kizzy

add automatic timeout to clear stale media rpc status

Open
#482 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.2k
Forks
121
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.