INTERACT FORUM

More => Old Versions => JRiver Media Center 20 for Windows => Topic started by: CubicZirconia on February 07, 2015, 09:15:49 pm

Title: MC20 command line question
Post by: CubicZirconia on February 07, 2015, 09:15:49 pm
Hi all

I m trying to set up MC20 as an external player for XBMC to replace MPC-HC which I previously used.  :P

Unfortunately, MC20.exe does not take cascaded arguments so: mc20.exe /Start /Mode fullscreen /Play "%1" /Stop does not work. Simple enough, just set up a bat and do mc20.exe /Start mc20.exe /Mode fullscreen mc20.exe /Play "%1"

Unfortunately again, MC20.exe /Play <file> returns immediately without waiting for the playback to end so XBMC comes back to the top immediately.

So a question to the dev team, is there a way to make /Play wait for the playback to complete, then JRiver would be very easy to set up as an external play for many other applications.

Thanks

Title: Re: MC20 command line question
Post by: JimH on February 08, 2015, 07:51:58 am
On a command with spaces, you would need to quote the entire command.
Title: Re: MC20 command line question
Post by: CubicZirconia on February 08, 2015, 12:37:53 pm
Hi Jim, thanks for the respond, but could you elaborate a bit more?

I tried mc20.exe "/Play %1 /Mode Fullscreen", not working.

My current difficulty is not that playback does not start. 'mc20.exe /Play "%1"' works and starts the play back in JRiver.

However, this command returns immediately, so the caller application resumes, in case of XBMC and other caller environments, the caller window pops back up top and grabs the focus. Other players MPC-HC, VLC etc only returns when the video is finished or the user issues a stop (from keyboard or remote).

Is there something to the effect of mc20.exe /Wait, which waits for the current playing program to finish before return? much like waiting for a separate thread to rejoin. for a movie this means /Wait would hold on to the command pipe line for hour and half and prevents the return to the caller.
Title: Re: MC20 command line question
Post by: DoubtingThomas on February 08, 2015, 05:57:38 pm
+1

I would have so many uses for cascaded MC20.exe commands, saving me lots of batch files.