Windows > Plug-in Development

MCWS Questions

(1/3) > >>

mpg732:
I have been playing around with creating controls for MC in Demopad.  I have the following command http://localhost:52199/MCWS/v1/Playback/Playlist?Zone=-1.  That works and all, but was wondering how and or if it can be done, I would like to limit how much info is returned, IE only Title, artist, duration and son ID#, so is that possible?  I also have a playlist of over 800 songs, that is a lot of returned data to sort through and parse.  I also was wondering if you can get the returned info in the shuffled state that the playlist is currently playing in?  I was also wondering if you can get a limited number of songs, such as give me the first 1 to 50 songs, then next being 51 to 100, and so on?

Thanks
Mike

PS, I have searched the internet for answers but was not able to find answers...

mattkhan:
see the doc at http://localhost:52199/MCWS/v1/doc

you'll see there is a parameter

            Fields: The fields to include in an MPL (use empty to include all fields) (set to Calculated to include calculated fields). (default: )

I don't believe there is any pagination built in

mpg732:
I started there, I guess I don't understand how to do this, that's why I am asking for help.  Can you please give an example command?

Thanks
Mike

mpg732:
So kinda got it working with the following line,
http://localhost:52199/MCWS/v1/Playback/Playlist?Fields=Key,Name,Artist,Duration?Zone=-1

Can not get Duration to show up in the returned data

retiredteacherguy:
Try: http://localhost:52199/MCWS/v1/Playback/Playlist?Fields=Key,Name,Artist,Duration&Zone=-1

Navigation

[0] Message Index

[#] Next page

Go to full version