[Feeback] DBus interface ...
Swapan
swapan at yahoo.com
Tue Aug 7 01:55:56 UTC 2007
>=> There should be calls to retreive all information
>of a playlist item at once, under some cheap text
> format. For instance, I'm signaled the track
> change, I only have to call the DBus "int i =
> dbus(amarok getPlayingPosition)" and then
> "dbus(amarok getTrackInformation i)" (in pseudo
> language) and this second call returns
>
"Track:***\nArtist:***\nfullCover:***\nRating:\n***".
> This is very cheap: only one IPC, no XML parsing,
all
> information are one line of text, so I can split
with
> "\n" and then take everything before the ":" ass the
> key, and everything after as the value. This "all in
> one" call is a "bonus", to optimize computations in
> critical moments like track changing.
Or it could be in YAML format, for which ruby
libraries are easily available.
Just my 2 cents.
More information about the Amarok
mailing list