https://bugs.kde.org/show_bug.cgi?id=523057

            Bug ID: 523057
           Summary: Multimedia control plugin reports the same playback
                    position for all players, breaking position/length for
                    voice messages
    Classification: Applications
           Product: kdeconnect
      Version First unspecified
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: android-application
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 194295
  --> https://bugs.kde.org/attachment.cgi?id=194295&action=edit
Bug

SUMMARY
When multiple media players are active on the Android device, the KDE Connect
multimedia control plugin exposes the same playback position for all of the
MPRIS proxy players it creates on the desktop. As a result, a short track
(e.g. a 30-second WhatsApp voice message) gets the position of a different,
long-running player, so position >> mpris:length.

The Plasma media controller applet then displays a nonsensical negative
remaining time (see attached screenshot: "-909387748:32" while the position
shows 5:50) and the progress bar is stuck at the end.

STEPS TO REPRODUCE
1. Pair an Android phone via KDE Connect with the multimedia control plugin
enabled.
2. Play a long-running stream on the phone (in my case an internet radio
stream).
3. Play a short voice message (e.g. WhatsApp, ~30 s) on the same phone.
4. Observe the media controller applet / playerctl output on the desktop.

OBSERVED RESULT
All three kdeconnect MPRIS players report the identical position, even though
one of them is a 30-second voice message:

$ playerctl -l
kdeconnect.mpris_430fee4e14594d4cb9d0533a07dc75f3   -> position: 511.597
kdeconnect.mpris_b4b29e3d5ed74009b4e81698be7eb7bd   -> position: 511.619 
(radio stream)
kdeconnect.mpris_f79969fe31b04322b35cea2189cd5422   -> position: 511.655 
(voice message)

Metadata of the voice message player:
mpris:length   30000000        (= 30 s, plausible)
xesam:artist   Sprachnachricht
xesam:title    Joran
position       511.655         (= 8:31, impossible for a 30 s track)

EXPECTED RESULT
Each MPRIS proxy player should report the playback position of its own
media session on the phone; position should never exceed mpris:length.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.7.2
KDE Connect (desktop): [Version eintragen: kdeconnect-cli --version]
KDE Connect (Android): [Version aus der App eintragen]
Phone: [Modell + Android-Version eintragen]

ADDITIONAL INFORMATION
Possibly related: GSConnect hit the same issue with this plugin confusing
multiple players:
https://github.com/GSConnect/gnome-shell-extension-gsconnect/issues/1780

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to