INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCWS Play a playlist?  (Read 3994 times)

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
MCWS Play a playlist?
« 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
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: MCWS Play a playlist?
« Reply #1 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.

Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: MCWS Play a playlist?
« Reply #2 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.

Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: MCWS Play a playlist?
« Reply #3 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.
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: MCWS Play a playlist?
« Reply #4 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

Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: MCWS Play a playlist?
« Reply #5 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.
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: MCWS Play a playlist?
« Reply #6 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
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo
Pages: [1]   Go Up