[mpris] MPRIS Ruby Gem
Nicholas J Humfrey
njh at aelius.com
Sat Apr 26 23:01:38 CEST 2008
>> I have found a few bugs in VLC as a result, including pausing
>> freezing
>> the interface subsystem and a rounding error in setting the volume:
>> https://trac.videolan.org/vlc/ticket/1559
>> https://trac.videolan.org/vlc/ticket/1561
>
> I'll have a look asap.
I have spotted a new other problems, should I report them all on trac?
- Quit method should be in root object, not the Player object
- Sending play message when playing should rewind, it currently
crashes VLC's control subsystem.
- /TrackList/GetMetadata is supposed to number tracks from 0, VLC is
currently numbering them from 1. Indeed if you request metadata for
track 0, it crashes VLC.
- /Player/GetStatus is returning large integer numbers for looping and
random status.
flophtaf:trunk njh$ ./examples/status_test.rb
Enabling looping.
Looping status: 3376641
Disabling looping.
Looping status: 3376640
Enabling random.
Random status: -1338987263
Disabling random.
Random status: -1338987264
Enabling repeating.
Looping status: true
Disabling repeating.
Looping status: false
I am thinking of writing a test suite in Ruby to check a Media Player
for MPRIS v1.0 compliance, good idea?
>> Is MPRIS being using by anyone at the moment? I saw this bit of
>> python, is there anything else out there?
>
> It's being used by VLC, Audacious, BMPx and DragonPlayer, for the
> server side, and by pidgin-mpris, gnome-music-applet and libmpris for
> the client side.
Cool thanks. I have listed these on mpris.org.
>> Also, is there currently a way of jumping to starting playing a
>> specific item on the track list?
>
> Nice catch, the spec lacks such a method, it should be proposed for
> addition in v 1.1
Another request for version 1.1 of the specification is listing the
standard key names for the metadata dictionaries. The ones I am
seeing from VLC are:
{"status"=>1,
"artist"=>"Mistys Big Adventure",
"URI"=>"/Users/njh/Music/fashion_parade.mp3",
"title"=>"Fashion Parade - Instrumental",
"date"=>"0",
"length"=>222187,
"description"=>" ",
"genre"=>"<Unknown>",
"album"=>"Fashion Parade",
"tracknum"=>"5"}
What is the 'status' key?
nick.
More information about the mpris
mailing list