Public bug reported:

Trying to add complete cover/album art support for the Ubuntu Touch by
allowing the album art to be set with a thumbnailer URI, e.g.
"image://thumbnail/<URI>". This works fine. However, when I change the
QML surrounding setting the source image for albumArtImage in
MediaPlayerMenu.qml to handle the case where the thumbnailer could not
find album art for a given track that it would then detect this error
and set file:///usr/lib/arm-linux-gnueabihf/unity-scopes/mediascanner-
music/album_missing.svg as the fallback image. Once I set this image, it
seems that no other album artwork takes effect even though media-hub is
passing a valid image URI to indicator-sound. The code that I'm trying
to add that demonstrates this situation is (sits in the albumArtImage
definition):

onStatusChanged: {
  if (albumArtImage.status === Image.Error) {
    console.debug("Hit an error while loading image, using fallback image")
    albumArtImage.source = 
"file:///usr/lib/arm-linux-gnueabihf/unity-scopes/mediascanner-music/album_missing.svg";
  }
}

** Affects: ubuntu-settings-components (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- Does not allow another album art to be set after setting to an explicit file 
URI
+ Does not allow another album art to be set after setting image source to an 
explicit file URI

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-settings-components
in Ubuntu.
https://bugs.launchpad.net/bugs/1593356

Title:
  Does not allow another album art to be set after setting image source
  to an explicit file URI

Status in ubuntu-settings-components package in Ubuntu:
  New

Bug description:
  Trying to add complete cover/album art support for the Ubuntu Touch by
  allowing the album art to be set with a thumbnailer URI, e.g.
  "image://thumbnail/<URI>". This works fine. However, when I change the
  QML surrounding setting the source image for albumArtImage in
  MediaPlayerMenu.qml to handle the case where the thumbnailer could not
  find album art for a given track that it would then detect this error
  and set file:///usr/lib/arm-linux-gnueabihf/unity-scopes/mediascanner-
  music/album_missing.svg as the fallback image. Once I set this image,
  it seems that no other album artwork takes effect even though media-
  hub is passing a valid image URI to indicator-sound. The code that I'm
  trying to add that demonstrates this situation is (sits in the
  albumArtImage definition):

  onStatusChanged: {
    if (albumArtImage.status === Image.Error) {
      console.debug("Hit an error while loading image, using fallback image")
      albumArtImage.source = 
"file:///usr/lib/arm-linux-gnueabihf/unity-scopes/mediascanner-music/album_missing.svg";
    }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-settings-components/+bug/1593356/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to