INTERACT FORUM

More => Old Versions => JRiver Media Center 27 for Linux => Topic started by: Mastiff on April 29, 2021, 06:02:19 am

Title: How do I start playback of library items from MCWS?
Post by: Mastiff on April 29, 2021, 06:02:19 am
I have found the function to play playlists, here to my boat Mad Max which has the address 192.168.2.101 when it's docked:

http://192.168.2.101:16000/MCWS/v1/Playback/PlayPlaylist?Zone=-1&ZoneType=ID&PlaylistType=ID

But from there to actually play the playlist wasn't as easy as I thought. My best guess was this:

http://192.168.2.101:16000/MCWS/v1/Playback/PlayPlaylist?Playlist=BoatMusic&Zone=-1&ZoneType=ID&PlaylistType=ID

Or this:
http://192.168.2.101:16000/MCWS/v1/Playback/PlayPlaylist?Zone=-1&ZoneType=ID&Playlist=BoatMusic&PlaylistType=ID

But none of them will play the playlist BoatMusic. The response is "OK" in the browser, but nothing happens in Media Center. Can somebody please let me know what I should do? Also, what shold I do if there is a space in the name of the playlist?
Title: Re: How do I start playback of library items from MCWS?
Post by: Matt on April 29, 2021, 06:56:45 am
Playlist type shouldn't be ID if you're passing a name.
Title: Re: How do I start playback of library items from MCWS?
Post by: Mastiff on April 29, 2021, 07:03:16 am
Thanks for answering, Matt! So I should use path, then? But how do I format that?
Title: Re: How do I start playback of library items from MCWS?
Post by: Matt on April 29, 2021, 07:06:50 am
I think it's just playlist type of path.
Title: Re: How do I start playback of library items from MCWS?
Post by: Mastiff on April 29, 2021, 07:16:13 am
Still only "OK" and no playback, I'm afraid in both these:

http://192.168.2.101:16000/MCWS/v1/Playback/PlayPlaylist?Zone=-1&ZoneType=ID&Playlist=Playlists\BoatMusic&PlaylistType=Path
http://192.168.2.101:16000/MCWS/v1/Playback/PlayPlaylist?Playlist=Playlists\BoatMusic&Zone=-1&ZoneType=ID&PlaylistType=ID
Title: Re: How do I start playback of library items from MCWS?
Post by: Matt on April 29, 2021, 07:53:42 am
This just worked for me:
http://localhost:52199/MCWS/v1/Playback/PlayPlaylist?Zone=-1&ZoneType=ID&Playlist=Phillip&PlaylistType=Path

You don't need Playlists\ in front of the name unless you actually have a "Playlists" group.
Title: Re: How do I start playback of library items from MCWS?
Post by: Mastiff on April 29, 2021, 07:57:56 am
Thank you! That worked, yeah. Removing the Playlists\ did the trick.
Title: Re: How do I start playback of library items from MCWS?
Post by: Mastiff on April 29, 2021, 02:16:54 pm
Btw is there a similar way to put in single tracks, or is it better to create playlists for each of the tracks I want to have on hand for this shortlist?