INTERACT FORUM

Please login or register.

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

Author Topic: Can't get PlayPlaylist to work via REST API  (Read 194 times)

landolfi

  • Recent member
  • *
  • Posts: 33
Can't get PlayPlaylist to work via REST API
« on: January 24, 2024, 01:58:51 pm »

Hi,

I'm trying to run the following REST command to run a playlist:

http://192.xxx.x.xxx:52199/MCWS/v1/Playback/PlayPlaylist?Playlist:4365624&Zone=Denon&ZoneType=Name

HTTP response to the request is OK but it doesn't actually play anything. Other REST commands work fine.

The API doc says Playlist ID is the default type so the PlaylistType parameter is optional, but I can't get the command to work with or without that parameter.

The doc has this example but it doesn't show any example of an actual playlist ID and this example doesn't do anything:

http://192.xxx.x.xxx:52199/MCWS/v1/Playback/PlayPlaylist?Zone=-1&ZoneType=ID&PlaylistType=ID

The playlistID I am using is the one shown next to the playlist creation date when viewing it (as in the attachment). Any suggestions?





Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41967
  • Shoes gone again!
Re: Can't get PlayPlaylist to work via REST API
« Reply #1 on: January 24, 2024, 02:31:36 pm »

I don't understand the colon in your example.

I just tried this and it worked fine:
http://localhost:52199/MCWS/v1/Playback/PlayPlaylist?Zone=-1&ZoneType=ID&PlaylistType=ID&Playlist=811016816
Logged
Matt Ashland, JRiver Media Center

landolfi

  • Recent member
  • *
  • Posts: 33
Re: Can't get PlayPlaylist to work via REST API
« Reply #2 on: January 24, 2024, 03:15:23 pm »

Thanks, that was it. The doc said "Playlist: The ID of the playlist to play or the path. (default: )" and I thought that meant "Playlist:" was how you specify the ID.

I don't see anything in the PlayPlaylist doc on how to set Shuffle mode. I tried adding &Shuffle=1 but that didn't work. Is it possible to play the playlist shuffled?

EDIT: Answered my own question:  Yes, you can, but the "&Shuffle=1" must immediately follow the Playlist=xxxxxxx
Logged
Pages: [1]   Go Up