I recently dig into XMR feature to send some commands to the player.
This is new feature in CMS 1.8.
But when i configured the XMR Public address on CMS : tcp:://192.168.2.19:9505
Then went to Display profile for Android added this : tcp:://192.168.2.19:9505
And i also tried to use 192.168.2.19:9505 instead but no lucky.
This Player is not configured or ready to receive push commands over XMR. Please contact your administrator.
There isn’t a version of the Android player that supports XMR yet. We have one in testing at the moment, but we are not yet ready to release.
If you would like to become a tester, please email Spring Signage directly and let us know what your licence pool is so that we can provide you with the necessary APK / documentation.
You will also need XMR running - I assume you’ve got that configured?
For windows testing, you will need 1.8.0-alpha2 or later.
XMR listens for messages from the CMS and publishes messages to players. XMR can be run on the same box as the CMS or a different box - they are separate services.
You configure XMR first by selecting the ports you want it to listen and publish on and editing the config.json file accordingly. You must then run XMR - which you can do via php xmr.phar.
The CMS configuration must then match your XMR service (which is now running). The private address is the listenOn address and the public address is the publishOn address.
The CMS sends private messages to XMR and the players get published messages from XMR.
If you have XMR running in a terminal window you should see messages get logged as they go past
The windows box still running althought i send out a Shutdown command.
P/S : I also have problem when configuring XMR listen on just 1 port instead of port range in the config.json xmr.ERROR: Invalid argument supplied for foreach() [] []
I.e. it is still in an array, but just with one element.
The messages you see logged in that window would indicate that something is happening - the channel part of the string identifies the display, the rest some encrypted data.
The next thing to look at is the status window on the player to see what the XMR connection message says at the bottom (it is possible for XMR to broadcast, but nothing to be listening)
P/S : I am wondering is that possible to send out a keyevent to Android Box via Command feature ?
ex: I would like to send out “input keyevent XXX”
I still not able to make a command work with this beta verion.
I sent out a command to Windows Client and saw that the client has received the command but client could not execute it.
The commands i used is :
The shutdown command is an administrative command. User Account Control may be blocking the command from being preformed. I would suggest disabling that if it is not.
Your “code” needs to be a short one word code and your command string needs to be set on any display settings profile you want to use that command on.
Is “Notify Current Layout” enabled in Display Settings?
Thanks for pointing me the right way here.
I have already taken a glance at that guide at the first time but the “Code” field makes me confused.So i did a wrong way( or maybe the CMS make me think a wrong way at first time)
Although i can send some commands out now and relized that commands has been received by clients(Windows and Android) but i still no lucky to make it works.
I am going to figure out what the reason is.
P.s:
The Notify Current Layout is a new feature so i I did not paying attention on this.