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

--- Comment #1 from snehal....@gmail.com ---
I am using Bluez-Qt on a platform which is acting as bluetooth audio sink. I
don't have exact steps to reproduce the issue, but the d-bus log I captured
clearly shows the issue. When playing a media track from bluetooth audio
soruce, sometimes the media track information (Title and Album) is empty
string. I have observed this on Samsung S8 Android phone. 

Below is the log from d-bus monitor. It is clear that 2nd Track update is send
without Title and Album, BluezQt is overwriting the entry as NULL.

signal time=1560569200.695774 sender=:1.0 -> destination=(null destination)
serial=1350 path=/org/bluez/hci0/dev_90_97_F3_F7_33_31/player12;
interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.MediaPlayer1"
   array [
      dict entry(
         string "Track"
         variant             array [
               dict entry(
                  string "Title"
                  variant                      string "Helvetica® Now With
Monotype's Charles Nix"
               )
               dict entry(
                  string "Duration"
                  variant                      uint32 4294967295
               )
               dict entry(
                  string "Album"
                  variant                      string ""
               )
               dict entry(
                  string "TrackNumber"
                  variant                      uint32 1
               )
               dict entry(
                  string "Artist"
                  variant                      string "Techmeme Ride Home"
               )
               dict entry(
                  string "NumberOfTracks"
                  variant                      uint32 1
               )
               dict entry(
                  string "Genre"
                  variant                      string ""
               )
            ]
      )
   ]
   array [
   ]

signal time=1560569202.644334 sender=:1.0 -> destination=(null destination)
serial=1356 path=/org/bluez/hci0/dev_90_97_F3_F7_33_31/player12;
interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.MediaPlayer1"
   array [
      dict entry(
         string "Track"
         variant             array [
               dict entry(
                  string "Duration"
                  variant                      uint32 1698877
               )
            ]
      )
   ]
   array [
   ]


mediaplayer_p.cpp

MediaPlayerTrack MediaPlayerPrivate::variantToTrack(const QVariant &variant)
const
{
    const QVariantMap &properties = qdbus_cast<QVariantMap>(variant);
    return MediaPlayerTrack(properties);
}

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

Reply via email to