INTERACT FORUM

Please login or register.

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

Author Topic: Command line to retrieve status  (Read 976 times)

miketl

  • Guest
Command line to retrieve status
« on: February 23, 2014, 07:43:23 pm »

Hello,

Is it possible to issue a command line to get the current status of JRiver (i.e, Playing/Paused etc.)

Thanks
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Command line to retrieve status
« Reply #1 on: February 23, 2014, 08:02:24 pm »

Here's one way:

$ wget --quiet -O - --user xxx --password yyy "http://localhost:52199/MCWS/v1/Playback/Info?Zone=-1"  | grep '"Status"'
<Item Name="Status">Playing</Item>

$ mc19.exe /Pause

$ wget --quiet -O - --user cappella --password gomerpyle "http://localhost:52199/MCWS/v1/Playback/Info?Zone=-1"  | grep '"Status"'
<Item Name="Status">Paused</Item>

There is also the ability to use the mc19.exe launcher with an MCWS command, but I don't get any output when I try:

$ mc19.exe "/MCWS/v1/Playback/Info?Zone=-1"

Command line reference:

    http://wiki.jriver.com/index.php/The_Command_Line
Logged
The opinions I express represent my own folly.

miketl

  • Guest
Re: Command line to retrieve status
« Reply #2 on: February 23, 2014, 08:13:11 pm »

Thank you for your help.

But in order to issue the commands that you listed do I need to set JRiver as a Media Network Server? Because it is only used on one computer, so it is just used for playback of local files.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Command line to retrieve status
« Reply #3 on: February 23, 2014, 08:21:26 pm »

For the command line usage, no, it does not need to be enabled.  But I got no results.

For status via http, yes, it has to be enabled.  It is very light weight, so I wouldn't worry about it.
Logged
The opinions I express represent my own folly.

DoubtingThomas

  • Citizen of the Universe
  • *****
  • Posts: 564
Re: Command line to retrieve status
« Reply #4 on: February 23, 2014, 09:15:58 pm »

I use the MCWS calls too using wget... (or use curl).

It works great.  Some scripting knowledge is required.  I run them using unix korn shell scripts from Windows using cygwin.
Logged
Pages: [1]   Go Up