INTERACT FORUM
More => Old Versions => JRiver Media Center 29 for Windows => Topic started by: rolf_eigenheer on May 01, 2022, 10:07:44 am
-
Hi Matt
A long time ago you added /PlayReplace selected, /Append selected and /PlayNext selected as command line parameter. They are very useful. But they are handled different than MCC commands. The execution order between MCC and command line is not guaranteed.
Calling these two commands in this order sometimes results in reversed execution. This means, that MC switches to Playing now and then adds the highlighted title from playing now to the end of the list.
<Entry Key="Ctrl;Shift;2" Type="Program" Command="mc28.exe" Param="/Append selected" Global="1" />
<Entry Key="Ctrl;Shift;F2" Command="22001" Param="2" Global="1" />
Using MCC instead of command line parameters also would allow to use the resource.xml independent of the name of the executable.
-
Can anyone from the developers crew explain, if there is a problem to add these commands as MCC ? Or is there a reason why this three commands should be called different than all others ?
Wouldn't it be possible to handle all commands in MCC? And with a single command line command 'call MCC' the both interfaces would be identiical.
-
What MCC additions are you looking for exactly? The mapping isn't always one to one as you've seen between the command line and MCC commands. Thanks.
-
Order of execution is never guaranteed if you do it on independent key-presses. If you have a compound action, what I would recommend is to actually make a batch file that runs both commands through the commandline, that way its more likely that the first is complete before the second runs.
The reason these commands are run through the launcher is that while MCC commands can take parameters, passing anything more complex then a number is complicated (like a filename, "selected" is just a special case in the same logic). And most MCC commands exist because MC uses them to communicate between components - for this purpose we already have MCC_PLAY_ADVANCED, but its parameter payload is complicated and can't be fed from a keybinding.
"play all selected files", "append all selected files" etc in how many variants of playback methods there are seems extremely specific for MCC commands when you can already do these through the launcher, which is a more versatile interface for complex commands with parameters, and doesn't require making a lot of special cases.
In summary, MCC is mostly designed to carry two numbers, the command and one numeric parameter. More complex parameters require an extreme level of complexity .. or using the launcher, which can translate for you. Thats what its for.
The launcher can also run MCC commands already, eg. "MC29.exe /MCC 22001,2" should work fine.
-
Order of execution is never guaranteed if you do it on independent key-presses. If you have a compound action, what I would recommend is to actually make a batch file that runs both commands through the commandline, that way you can be sure the first completed before the second runs.
The reason these commands are run through the launcher is that while MCC commands can take parameters, passing anything more complex then a number is complicated. And most MCC commands exist because MC uses them to communicate between components - for this purpose we already have MCC_PLAY_ADVANCED, but its parameter payload is complicated and can't be fed from a keybinding.
OK. But the 3 commands /PlayReplace selected, /Append selected and /PlayNext selected do not require complex parameters. They could easily be assigned to a MCC number.
Regarding the execution order I can't follow your explanations. I would expect that Cursor Down, followed by Enter would be executed exactly in this order.. You say that this is not guaranteed ?
-
What MCC additions are you looking for exactly? The mapping isn't always one to one as you've seen between the command line and MCC commands. Thanks.
I ask you to add MCC commands for these 3 commands: /PlayReplace selected, /Append selected and /PlayNext selected.
I use them very often. While browsing the lib, a single key ads the item to playing now. In Party-Mode this gives a jukebox like operation.
Thanks
-
Coming next build:
NEW: Added MCC_PLAY_SELECTED (10069) to play the selected files (0: play replace, 1: append, 2: play next).
-
Coming next build:
NEW: Added MCC_PLAY_SELECTED (10069) to play the selected files (0: play replace, 1: append, 2: play next).
Thanks! This works.
How to assign a MCC command to a remote control key when the command is not in the list ? Is there a way to use the MCC numbers ?