syntax - I'm totally lost

Jun 27, 2010 at 6:48 PM

could someone please provide an example of the correct syntax, for example to play a particular album?

 

I can list artists:

http://192.168.0.120:40510/music-list-artists

and play songs form an artist

http://192.168.0.120:40510/play-audio-artist%20beck

but for the life of me, I can't figure out how to play a particular song, or particular album.

I feel like a bit of an idiot, but I'm not seeing any examples and the documentation is pretty sparse.

Thanks for any help

Coordinator
Jul 2, 2010 at 10:35 PM

The play-audio command is depricated (it still works, but probably will not be maintained) so you shouldn't use it. The audio library commands were depricated because of performance. The were replaced with the much faster music-* commands

So, to play all the songs by Beck you should use something like http://192.168.0.120:40510/music-play%20artist:%22beck%22

To list all the albums by Beck: http://192.168.0.120:40510/music-list-albums%20artist:%22beck%22

To play the album "Modern Guilt" you could use either of: (the first one is safer as it won't match another album of the same name by a different artist

  • http://192.168.0.120:40510/music-list-albums%20artist:%22beck%22%20album:%22Modern Guilt%22
  • http://192.168.0.120:40510/music-list-albums%20album:%22Modern Guilt%22

To play a specific song you could use the index: http://192.168.0.120:40510/music%20playindexes:23,24 (this would play the 23rd and 24th songs in your collection

To see the indexes for songs by Beck you could use: http://192.168.0.120:40510/music-list-songs%20artist:%22beck%22

Basically all of the music commands filter on artist and or album. To play at a finer resolution you need to use the indexes -- note when you use indexes the other filters are ignored

Does this help at all?

Jul 2, 2010 at 11:46 PM
Edited Jul 2, 2010 at 11:50 PM

yes that helps a lot!  I am now able to request an album by name which is great.

I never saw a reference to the syntax  music-play album:"xyz"

the command http://192.168.0.120:40510/music%20playindexes:23,24 does not work for me.  It returns:

ERRORCommand: music
Params: playindexes:23,24
Returned: BadRequest -

does this command need to be issued in a particualr context (i.e. after some other list command) , or is there a syntax error?

ok, tried changing the syntax to something like the artist request you made and it works:

http://192.168.0.120:40510/music-play%20indexes:1,2,3,4,5

this info on the documentation page would be a huge help!!!

So, to request a song by name, (assuming I only know the name) I would have to list all songs and then look up the index?  (i.e. I can filter on artist and album strings, but not on song strings)  Correct?

In case you are interested here's what I'm working on: www.voxcommando.com

 

 

Jul 3, 2010 at 12:05 AM

Slightly off topic, -- but in case you are still on hiatus.. or do you work on VmcC when you are off hiatus?

I have installed recent version of VMC controller that works for win7 x64 (version 46033 may 25), and an older version that works on Vista 32bit (beta 2 from feb 2009! - found on the home page - top right)

I can't find a version that works on Win7 32bit

and I can't find one that works on Vista 64bit

any suggestions?  am I looking for love in all the wrong places or do these not exist?  I am also concerned the new commands such as:

 music-play album:"xyz"

won't work on the version from feb 2009.

If that's the case it means I can only really use this on Win7 x64.  It's fine for me, but I was hoping others could use my software in conjunction with yours and it is a severely limiting factor if only win7x64 is supported.

thanks again for you help!  If I can contribute to a wiki or documentation a bit let me know how and I will when I have some time.