mpris:length field missing in MPRIS D-Bus interface

Bug #1596245 reported by Michael Zanetti
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
John McAleely
media-hub (Ubuntu)
Fix Released
High
Jim Hodapp
media-hub (Ubuntu RTM)
Fix Released
High
Jim Hodapp

Bug Description

The track length would be useful in order to paint progress bars etc but it is missing in the returned Metadata.

a call to org.mpris.MediaPlayer2.MediaHub /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata will return the following example Metadata:

{
  "album-disc-count": "1"
  "audio-codec": "MPEG-1 Layer 3 (MP3)",
  "bitrate": "291000",
  "channel-mode": "joint-stereo",
  "container-format": "ID3 tag",
  "copyright": "2011 R.E.M./Athens, L.L.C. under exclusive license to Warner Bros. Records Inc.",
  "datetime": "",
  "maximum-bitrate": "319725",
  "minimum-bitrate": "191712",
  "mpris:artUrl": "image://thumbnailer/file:///home/phablet/Music/R.E.M./Part%20Lies%20Part%20Heart%20Part%20Truth%20Part%20Garbage%201982-2011/27%20-%20Electrolite.mp3",
  "mpris:trackid": "/org/mpris/MediaPlayer2/Track/26",
  "private-id3v2-frame": "",
  "track-count": "40",
  "xesam:album": "Part Lies Part Heart Part Truth Part Garbage 1982-2011",
  "xesam:albumArtist": "R.E.M.",
  "xesam:artist": "R.E.M.",
  "xesam:comment": "Amazon.com Song ID: 22576321",
  "xesam:composer": "",
  "xesam:discNumber": "1",
  "xesam:genre": "Rock",
  "xesam:title": "Electrolite",
  "xesam:trackNumber": "27"
}

The track duration (mpris:length) is not in there.

Related branches

Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu RTM):
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Jim Hodapp (jhodapp)
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

This bug was fixed in the package media-hub 4.2.0+15.04.20160628-0ubuntu1 in https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/stable-phone-overlay

---------------

media-hub (4.2.0+15.04.20160628-0ubuntu1) vivid; urgency=medium

  [ Jim Hodapp, Michael Zanetti ]
  * Export the current track length per the MPRIS spec. (LP: #1596245)

 -- Jim Hodapp <email address hidden> Tue, 28 Jun 2016 01:45:45 +0000

Changed in media-hub (Ubuntu RTM):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package media-hub - 4.2.0+16.10.20160628-0ubuntu1

---------------
media-hub (4.2.0+16.10.20160628-0ubuntu1) yakkety; urgency=medium

  [ Jim Hodapp, Michael Zanetti ]
  * Export the current track length per the MPRIS spec. (LP: #1596245)

 -- Jim Hodapp <email address hidden> Tue, 28 Jun 2016 01:45:45 +0000

Changed in media-hub (Ubuntu):
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: New → Confirmed
status: Confirmed → Fix Committed
importance: Undecided → High
assignee: nobody → John McAleely (john.mcaleely)
milestone: none → 13
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.