Created attachment 162579 [details] log file from "adb logcat" Youtube starts playing againg after a video has finished. It happens autonomously while away from keyboard and phone. May apply to generic multimedia playback but I've only picked Youtube for debugging. I experienced the bug for some time now and I found a matching reddit report on it: https://www.reddit.com/r/kde/comments/nsym2s/kde_connect_randomly_plays_stuff/ Boiled down to Plasma integration plugin for Chromium and having KDE Connect on my Android connected. It's not affected by other Browser plugins since I've deactivated all of them for testing. Happens randomly, from a few seconds after the video just finished up to 10 minutes or maybe more. In KDE Connect settings on PC I've deactivated "Pause on call" and "MprisRemote", which seem to not causing the problem. Seems to be related to "Multimedia-Receiver control" (guessed the translation) resulting in Android showing a widget in the top-down menu containing the media title and a play/pause button. Doesn't matter if Android is awake or in display off mode. Systemd-journal sometimes dropped a few repeating lines: 'kdeconnectd[1736]: discarding unsupported packet "kdeconnect.mpris" for "CPH2145"' Also when the playback starts automatically again. But seems to be related to the turned off "MprisRemote" plugin. So probably ignore this information. Wasn't able to reduce the logs because of massive output. Turned off bluetooth at least. Kept Wifi active for the KDE connect connection. I've fetched the PID of KDE-Connect on the Phone for log filtering (if relevant): 6326 OP4F1BL1:/ $ ps -ef root 1182 1 0 07:01:34 ? 00:02:20 zygote64 u0_a309 6326 1182 0 07:02:17 ? 00:02:48 org.kde.kdeconnect_tp I've restarted the log capture a few times to reduce the size while waiting for the event to occur. The last few seconds should reflect the moment until the video played again and then I stopped the capture. The logs fetched by "adb logcat > logfile" seem always to start with a SIGABRT. Probably not related to the bug. STEPS TO REPRODUCE 1. Reload a video 2. Skip to the last seconds and wait for the endframe containing the recommendations 3. Wait up to 10 minutes or repeat the steps until the playback starts from the end frame. OBSERVED RESULT Video starts from the beginning as I would have pushed the play button on the notification widget. EXPECTED RESULT No replay. SOFTWARE/OS VERSIONS KDE Connect: 1.29.0 Chromium: 118.0.5993.88 Linux/KDE Plasma: Arch Linux, 2 days old KDE Plasma Version: 5.27.9 KDE Frameworks Version: 5.111.0 Qt Version: 5.15.11 Kernel: 6.5.8-arch1-1 (64 bit)
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