More > JRiver Media Center 29 for Linux

[SOLVED] How to Access MC Core Commands in Linux

(1/1)

afora:
Could anyone help with pointing out how to invoke those?
https://wiki.jriver.com/index.php/Media_Center_Core_Commands

Im trying to control MC from the command line to setup a remote control properly. They were very handy when I was running the media PC on Windows (with the /MCC argument), but no I cannot find a way to call them in a Debian distro.

Many thanks!

mwillems:
I'm not sure the core commands are implemented on Linux, but you can use MCWS to do automation from the command line and MCWS (to my knowledge) can do anything that the core commands can do.

afora:
Oh, fantastic thanks for the pointer!

To make it work:
- make sure that the MC Web server is running
- control MC from the browser (say, Play==10000):


--- Code: ---http://localhost:52199/MCWS/v1/Control/MCC?Command=10000
--- End code ---

- control MC from terminal (say, Play==10000)


--- Code: ---curl -s http://localhost:52199/MCWS/v1/Control/MCC?Command=10000 > /dev/null
--- End code ---

bob:
You can use the launcher stub too
/usr/lib/jriver/Media Center 29/mc29

afora:
Excellent, thank you!

This works, so I can turn off MCWS now:


--- Code: ---/usr/lib/jriver/MC27/mc27 /mcc 10000

--- End code ---

To automate and avoid portability issues with future versions of MC which would presumably change the path to a different MCXX:

* softlink /usr/lib/jriver/MC27/mc27 to a common immutable directory on the local system
* on upgrade of MC or OS reinstall to a different version just update the softlink to a different location without changing the softlink filename
* now linux keyboard bindings involving a fixed filename do not need to be changed

Navigation

[0] Message Index

Go to full version