Summary: | KDE Connect randomly starting playback of paused/stopped media on PC side | ||
---|---|---|---|
Product: | [Applications] kdeconnect | Reporter: | kde |
Component: | android-application | Assignee: | Albert Vaca Cintora <albertvaka> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | andrew.g.r.holmes, casta+kde, chicumihai55, drokergeek, marton2+kde, niuchangcun, smirky, smowtenshi |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Android | ||
OS: | Android 13.x | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
log file from "adb logcat"
mediaplayer setting that does not produces the issue |
Description
kde
2023-10-26 20:04:22 UTC
On a different computer with the same phone I just realized a different behaviour. After playback on Youtube, the widget greys out and just displays "Chromium" as media title. Pushing play is not possible. So a replay is not possible there. Looks like KDE was also causing playback stops on VLC. If a video file has elapsed more than 10 minutes and I hit pause, sometimes the video stopped. Or if a video was in a paused state it just stops at some time. Familiar with any 10 minute timer or timeout in KDE-Connect? That causes problems. So it seems this bug is also the one making mpv close when pausing the video, or making youtube video or other browser's players go back to the beginning when pausing I have the same bug happening.Running android 13,KDE connect v. 1.32.2,Plasma 6.1.5. Also happens on Gnome 46 with Gsconnect extension I have the same problem. For me it happens when I watch a YT video, then it's enough just to unlock the phone, the video starts playing in the background from the beginning. I changed my phone, and with this one, also android, i no longer have any issues with youtube, mpv, etc. So maybe this issue is related to how android manages the kde connect app somehow, maybe something about battery saving, persistent notifications or something. I've tried to dig a little deeper,here are my findings: These are the relevant logs from what i've been able to gather 10-11 16:37:30.863 4816 4816 I SystemUi--Notification: MediaTimeoutListener-->AOD_MEDIA_PANEL-->timeout by cancellation (post delay) 10-11 16:37:30.866 4816 4816 I SystemUi--Notification: MediaDataManager-->AOD_MEDIA_PANEL-->Updating 0|org.kde.kdeconnect_tp|-1850276765|null|10383 timedOut: true 10-11 16:37:31.001 3249 5709 I MediaSessionService: tempAllowlistTargetPkgIfPossible callingPackage:com.android.systemui targetPackage:org.kde.kdeconnect_tp reason:MediaSessionRecord:stop [WIU] [FGS] The issue seems to occur when the media control notification times out after a period of inactivity,the system stops the notification and triggers the onStop method in mediaSessionCallback and sends stop signal via dbus.I've placed breakpoints all over when debugging this issue and only the callback was triggered so i assume the system is doing it. It might only happen to ColorOS/OxygenOS devices since original reporter and myself use one,i am running on a OnePlus 12r with android 14 CPH2609_14.0.0.832.I tried it on a Honor device running android 14 and the issue didnt happen.I havent found any settings that can help with this issue,the only thing that helped was building the app without the stop callback.I also had some success with versions below 1.25 but it could have been a coincidence Well, I gotta say I was using a OnePlus Nord 2, which had the issue, and with the Pixel I do not have it anymore so could be related to the OnePlus OS Created attachment 176365 [details] mediaplayer setting that does not produces the issue I can confirm this behaviour on my Pixel 7a under CalyxOS Android 15. It only occurs when the media player pinning (see screenshot) is **not** pinned. As soon as it’s pinned, the issue vanishes. For me it confirms what was found in https://bugs.kde.org/show_bug.cgi?id=476123#c7 Thank’s I can confirm that with OnePlus 7 and OnePlus 12, the issue is reproducible. In fact, I just found out about this. Is my report a duplicate of this one? https://bugs.kde.org/show_bug.cgi?id=498619 |