From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 11/13 v2] test: Update test-player to register using MPRIS interface
Date: Thu, 10 Jan 2013 15:37:16 +0200 [thread overview]
Message-ID: <1357825038-21970-11-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1357825038-21970-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
test/simple-player | 35 +++++++++++++++++++++--------------
1 file changed, 21 insertions(+), 14 deletions(-)
diff --git a/test/simple-player b/test/simple-player
index e331c52..01bec06 100755
--- a/test/simple-player
+++ b/test/simple-player
@@ -29,23 +29,30 @@ class Player(dbus.service.Object):
signal_name = "PropertiesChanged")
else:
track = dbus.Dictionary({
- "Title" : "Title",
- "Artist" : "Artist",
- "Album" : "Album",
- "Genre" : "Genre",
- "NumberOfTracks" : dbus.UInt32(10),
- "TrackNumber" : dbus.UInt32(1),
- "Duration" : dbus.UInt32(10000) },
+ "xesam:title" : "Title",
+ "xesam:artist" : "Artist",
+ "xesam:album" : "Album",
+ "xesam:genre" : "Genre",
+ "xesam:trackNumber" : dbus.Int32(1),
+ "mpris:length" : dbus.Int64(10000) },
signature="sv")
self.properties = dbus.Dictionary({
- "Equalizer" : "off",
- "Repeat" : "off",
- "Shuffle" : "off",
- "Scan" : "off",
- "Status" : "playing",
+ "PlaybackStatus" : "playing",
+ "LoopStatus" : "None",
+ "Rate" : dbus.Double(1.0),
+ "Shuffle" : dbus.Boolean(False),
+ "Metadata" : track,
+ "Volume" : dbus.Double(1.0),
"Position" : dbus.UInt32(0),
- "Track" : track },
+ "MinimumRate" : dbus.Double(1.0),
+ "MaximumRate" : dbus.Double(1.0),
+ "CanGoNext" : dbus.Boolean(False),
+ "CanGoPrevious" : dbus.Boolean(False),
+ "CanPlay" : dbus.Boolean(False),
+ "CanSeek" : dbus.Boolean(False),
+ "CanControl" : dbus.Boolean(False),
+ },
signature="sv")
handler = InputHandler(self)
@@ -87,7 +94,7 @@ class InputHandler:
print('\t', cmd, self.commands[cmd], sep='')
print("\nUse python syntax to pass arguments to available methods.\n" \
- "E.g.: PropertiesChanged({'Track' : {'Title': 'My title', \
+ "E.g.: PropertiesChanged({'Metadata' : {'Title': 'My title', \
'Album': 'my album' }})")
self.prompt()
--
1.8.0.1
next prev parent reply other threads:[~2013-01-10 13:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-10 13:37 [PATCH BlueZ 01/13 v2] media-api: Add playback control methods to MediaPlayer1 Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 02/13 v2] player: Remove GetTrack and TrackChanged Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 03/13 v2] player: Add support for button controls Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 04/13 v2] player: Fix documentation to use TrackNumber in track metadata Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 05/13 v2] AVRCP: Always create a controller player even for version 1.0 Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 06/13 v2] player: Add Device property Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 07/13 v2] media: Adapt RegisterPlayer to changes in MediaPlayer1 Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 08/13 v2] test: Adapt simple-player to the new API of MediaPlayer1 Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 09/13 v2] tools: Adapt mpris-player to " Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 10/13 v2] media-api: Change RegisterPlayer to use MPRIS spec Luiz Augusto von Dentz
2013-01-10 13:37 ` Luiz Augusto von Dentz [this message]
2013-01-10 13:37 ` [PATCH BlueZ 12/13 v2] media: Implement new RegisterPlayer API Luiz Augusto von Dentz
2013-01-10 13:37 ` [PATCH BlueZ 13/13 v2] tools: Update mpris-player to register using MPRIS interface Luiz Augusto von Dentz
2013-01-10 16:02 ` Anderson Lizardo
2013-01-10 16:56 ` Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1357825038-21970-11-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox