Add support for MPRIS2 "Metadata" request

Bug #1440191 reported by moma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ANoise
Won't Fix
Undecided
costales

Bug Description

Would you please add support for Metadata request.
Ref: http://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html

Test with:

$ dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.anoise /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'

$ dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus'

F.ex audio-recorder would need Metadata.
https://launchpad.net/~audio-recorder

Thanks for a great ambient player.

Revision history for this message
moma (osmoma) wrote :

Fixing a typo. The player should be anoise (not rhythmbox).

$ dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.anoise /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'

$ dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.anoise /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus'

Obrigado. Boa noite.

Revision history for this message
costales (costales) wrote :

Hi! Thanks a lot for your feedback! :)

Uhm... I'm not sure, but it appears to use that (?)

costales@netbook:~$ dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.anoise /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus'
method return sender=:1.63 -> dest=:1.72 reply_serial=2
   variant string "Paused"
costales@netbook:~$ dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus'
method return sender=:1.64 -> dest=:1.73 reply_serial=2
   variant string "Paused"
costales@netbook:~$

ANoise is only using the basic states :O

Best regards!

Changed in anoise:
status: New → Triaged
costales (costales)
Changed in anoise:
status: Triaged → Won't Fix
Revision history for this message
John Drinkwater (johndrinkwater) wrote :

This looks to be a bug with sound_menu, as the spec at https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Property:Metadata has a title case for Metadata, but it defines:

    def MetaData(self):

in code, and that is the function called over DBus to get the track data. An easy fix!

Revision history for this message
John Drinkwater (johndrinkwater) wrote :
costales (costales)
Changed in anoise:
assignee: nobody → costales (costales)
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.