INTERACT FORUM

Please login or register.

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

Author Topic: MCWS: Playback/PlayByKey : support list of file keys  (Read 1447 times)

MrBiff

  • World Citizen
  • ***
  • Posts: 151
MCWS: Playback/PlayByKey : support list of file keys
« 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
Logged

MrBiff

  • World Citizen
  • ***
  • Posts: 151
Re: MCWS: Playback/PlayByKey : support list of file keys
« Reply #1 on: January 10, 2019, 07:39:44 pm »

Crickets?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: MCWS: Playback/PlayByKey : support list of file keys
« Reply #2 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.
Logged
Matt Ashland, JRiver Media Center

MrBiff

  • World Citizen
  • ***
  • Posts: 151
Re: MCWS: Playback/PlayByKey : support list of file keys
« Reply #3 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.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: MCWS: Playback/PlayByKey : support list of file keys
« Reply #4 on: January 10, 2019, 08:32:59 pm »

What if there was a play command that accepted the same MPL?
Logged
Matt Ashland, JRiver Media Center

MrBiff

  • World Citizen
  • ***
  • Posts: 151
Re: MCWS: Playback/PlayByKey : support list of file keys
« Reply #5 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.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42442
  • Shoes gone again!
Re: MCWS: Playback/PlayByKey : support list of file keys
« Reply #6 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.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up