INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Mac => Topic started by: MrBiff on January 03, 2019, 08:12:53 pm

Title: MCWS: Playback/PlayByKey : support list of file keys
Post by: MrBiff on January 03, 2019, 08:12:53 pm
Would you be able to support a delimited list of keys as the Key parameter in Playback/PlayByKey ?

Currently only one key is supported (unlike PlayByFilename).

I see the request here also:

https://yabb.jriver.com/interact/index.php/topic,90662.msg682857.html#msg682857
Title: Re: MCWS: Playback/PlayByKey : support list of file keys
Post by: MrBiff on January 10, 2019, 07:39:44 pm
Crickets?
Title: Re: MCWS: Playback/PlayByKey : support list of file keys
Post by: Matt on January 10, 2019, 08:05:36 pm
So it would just start a playlist of files instead of a single file?

If that's the idea, it seems pretty good and I could probably code it soon.

Thanks.
Title: Re: MCWS: Playback/PlayByKey : support list of file keys
Post by: MrBiff on January 10, 2019, 08:26:49 pm
Thank you.

To clarify...

When I do a search:

http://127.0.0.1:52199/MCWS/v1/Files/Search?Action=MPL&Fields....

and ask for (at least) Field=Key to be returned, I get a good list returned of files and fields.

But, later, If I want to play these keys, I want to send that list of file keys via Playback/PlayByKey in one call.  A pipe- or comma- separated list is what I'd want to send.

It might also be good to have the Files/Search option for Action=Play return the resulting files in the MPL as well (using the requested Fields).  Without this, Action=Play with a Search criteria provides no feedback about the files that were returned and played.

Now, I have to make two identical calls - one to Search and get the MPL returned with my fields, and a second call doing the same exact search, but this time changing Action=MPL to Action=Play.  This seems wasteful.
Title: Re: MCWS: Playback/PlayByKey : support list of file keys
Post by: Matt on January 10, 2019, 08:32:59 pm
What if there was a play command that accepted the same MPL?
Title: Re: MCWS: Playback/PlayByKey : support list of file keys
Post by: MrBiff on January 10, 2019, 08:38:03 pm
There are other operations where I also want to send a list of file keys for replacing (or adding to) playing now.  The example I gave was just one.  File keys are lightweight, and I can save a large list of them for upcoming operations.

I can reconstruct an MPL if necessary.
Title: Re: MCWS: Playback/PlayByKey : support list of file keys
Post by: Matt on January 11, 2019, 07:40:03 am
Coming in MC25, we'll have this:
Changed: Made the MCWS function Playback/PlayByKey take an array of keys (separated by comma) instead of only a single key.