For what it is worth, the jsonrpc interface is quite a bit faster.
For example, this is to increase the mixer volume by 1.
Code:
--------------------
busybox wget -q -O- --post-data='{"id":1,"method":"slim.request","params": [
"PLAYERNAME", [ "mixer", "volume", "+1" ] ]}' --header 'Content-Type:
application/json'
http://192.168.0.10:9000/jsonrpc.js
--------------------
Note, that you don't need to figure out the MAC address anymore, you can
just use the name of the player. Above noted as PLAYERNAME. The
format of the line is critical and all of the quote marks and
brackets/braces are required. In the next release of pCP, we have
converted most of our builtin commands to use this interface.
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://sites.google.com/site/picoreplayer/home
Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer
------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=108852
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix