Bug 500484

Summary: Wrong DBus parameter "CanPlay" when playing
Product: [Applications] kdeconnect Reporter: xaxaxa.kdebug
Component: plasmamobile-applicationAssignee: Nicolas Fella <nicolas.fella>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.12.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description xaxaxa.kdebug 2025-02-20 20:53:11 UTC
SUMMARY
When hitting "play", the DBus parameter "CanPlay" (org.mpris.MediaPlayer2.Player) becomes "false". This behavior closes Phoshs integrated media player while media on other devices are playing. This parameter should stay "true".

STEPS TO REPRODUCE
1. Using Phosh on one device.
2. Pairing to another device that can play media.
3. Hitting play on Phoshs integrated media player.

OBSERVED RESULT
Phoshs integrated media player disappears (or play/pause-button is getting disabled on older Phosh versions). This happened because the "CanPlay" parameter is changed to "false" after hitting the play button. When pause media on the other device (with any way), the media player appears (or play/pause-button becomes enabled) and the "CanPlay" parameter is changed back to "true".

EXPECTED RESULT
Phoshs integrated media player should be still visible and play/pause-button should be usable. The "CanPlay" DBus Parameter should stay "true" when hitting play/pause.

SOFTWARE/OS VERSIONS
Linux Debian Trixie
Phosh nightly (0.45+nb)

ADDITIONAL INFORMATION
This bug exists probably in all versions. I previously spoke with the Phosh team and investigated this bug with their help.
Comment 1 Nicolas Fella 2025-02-20 21:04:35 UTC
What software is the other device running? Linux, Android, ..?
Comment 2 xaxaxa.kdebug 2025-08-19 16:10:37 UTC
Sorry for that late response. Your message did not reach me somehow. Back this time I was using Win10 and I think it still is an issue (I just cannot test it anymore). Between Mobian, Debian and PureOS (older version of kdeconnect) there is no such issue.