2016-11-26, 13:07
Found a great way to see what's playing on your device.
output:
Code:
curl -s --user foo:bar --header 'Content-Type: application/json' --data-binary '{ "jsonrpc": "2.0", "method": "Player.GetItem","params": {"properties": [ "file"],"playerid":1},"id": "VideoGetItem"}' 'http://127.0.0.1:8080/jsonrpc'| python -m json.tool
output:
Code:
{
"id": "VideoGetItem",
"jsonrpc": "2.0",
"result": {
"item": {
"file": "/PATH/FILE",
"label": "TITLE",
"type": "unknown"
}
}
}