INTERACT FORUM
More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: DoubtingThomas on March 19, 2013, 10:02:58 am
-
NEW: The command line allows making MCWS web service calls: MC18.exe "/MCWS/v1/Playback/Pause?State=-1"
The example command above works, but I get no output from the command below.
mc18.exe "/MCWS/v1/Playback/Info?Zone=-1"
Running
wget -q -O - http://localhost:52199/MCWS/v1/Playback/Info?Zone=-1
gives the expected XML output.
-
http://yabb.jriver.com/interact/index.php?topic=79245.msg538373#msg538373
-
Can someone clarify what we can do differently now ?
Previously, in order to pause MC18 from another PC on the local lan, the following had to be done:
* Implement Media Network on MC18
* Run the following glynor script on the other PC (only relevant portion shown here):
oXMLHTTP.open "GET", "http://192.168.N.N:NNNN/MCWS/v1/Playback/PlayPause?Zone=-1&ZoneType=ID", False, "computer", "password"
oXMLHTTP.send
Can this be done differently now? Or is the new implementation for a similar, yet different situation ?
-
If you're controlling across the network, you need to call the web service over the network (so not with the command line).
-
Can someone clarify what we can do differently now ?
You can call MCWS functions (on the local computer) from the command line.
There are a lot of things you can do with MCWS that weren't possible with the command line before.
More here and an example:
http://yabb.jriver.com/interact/index.php?topic=79245
-
This is awesome, by the way. Thanks, Matt.