INTERACT FORUM

Windows => Third Party Plug-ins, Programs, and Skins => Topic started by: sarkonovich on February 15, 2016, 07:20:56 pm

Title: MCWS Play a playlist?
Post by: sarkonovich on February 15, 2016, 07:20:56 pm
What is the secret recipe for playing a playlist by name with MCWS. I would have thought:

"....MCWS/v1/Files/Search?Action=Play&Query=[Playlist]=[mellow jazz]"

or

"...MCWS/v1/Files/Search?Action=Play&Query=[Playlists]=[mellow jazz]"


but no luck. Any help?

Thanks,
Steve
Title: Re: MCWS Play a playlist?
Post by: blgentry on February 15, 2016, 08:13:35 pm
Looks like something like this works:

http://localhost:52199/MCWS/v1/Playback/PlayPlaylist?Zone=-1&ZoneType=ID&PlaylistType=Path&Playlist=Desert%20Island

If you make Playlist Type=ID, then you can use ID numbers of your playlists, but that doesn't seem very fun.

Brian.

Title: Re: MCWS Play a playlist?
Post by: sarkonovich on February 15, 2016, 08:41:52 pm
Thank you, but....

....doesn't work for me. Don't know why.

It seems to download the current (now playing) playlist.  And adding "&Action=Play" doesn't help, either.

Title: Re: MCWS Play a playlist?
Post by: blgentry on February 15, 2016, 08:51:19 pm
Did you copy the above text exactly?  Then substitute your own playlist name?  Note that the playlist name is a full path.  The playlist I specified is right in the root of Playlists.  If you have your playlists in groups, then you'd need to use a path something like:

Playlist=MyPlaylistGroup/GreatPlaylist1

Brian.
Title: Re: MCWS Play a playlist?
Post by: sarkonovich on February 15, 2016, 09:07:16 pm
Hmm. I did copy it exactly, replacing the playlist name with one of mine that is in the root of the Playlists lists. When I do that, I actually get the following:

<Response Status="Failure" Information="Function 'Playback/PlayPlaylist' not found."/>

If I modify the path to:

http://localhost:52199/MCWS/v1/Playback/Playlist?Zone=-1&ZoneType=ID&PlaylistType=Path&Playlist=mellow%20 tunes

I get an MPL as a response.

I even tried changing to  PlaylistType=ID and got the same thing.

Here's there info on the playlist, so I'm pretty sure it's not a path problem:

<Field Name="ID">660310479</Field>
<Field Name="Name">mellow tunes</Field>
<Field Name="Path">mellow tunes</Field>
<Field Name="Type">Playlist</Field>


I'm sure I'm just doing something wrong here, but I can't figure it out!

Steve

Title: Re: MCWS Play a playlist?
Post by: blgentry on February 15, 2016, 09:26:13 pm
You must be running a different version of MC or something, as you don't seem to have the function called "PlayPlaylist".

I'm running MC21.0.48 .  What version are you using?

You can find a full list of commands, with their own documentation built right in, by using MCWS itself:

http://localhost:52199/MCWS/v1/

Brian.
Title: Re: MCWS Play a playlist?
Post by: sarkonovich on February 15, 2016, 09:33:29 pm
Brian,

Just got it! Thanks...you pointed me in the right direction.

localhost:52199/MCWS/v1/Playlist/Files?Action=play&PlaylistType=Path&Playlist=desert%20island......etc.

Thanks again,

Steve

p.s. Using 20.0.129