2013-01-01, 08:27
Hi all
I'm trying to get the volume to go up/down via JSONRPC but I can't seem to get it work.
Using the above code sets the volume to a fixed amount. No problem there. But what I would like is a button to adjust the volume in increments of 5 (don't care if it's dB or %, just an example) So I tried:
..but that doesn't appear to do anything. I'm using REST on Chrome to test my code.
Hope someone can help, I've read a lot of threads and the XBMC Wiki but can't seem to get the right answer
I'm trying to get the volume to go up/down via JSONRPC but I can't seem to get it work.
Code:
{"jsonrpc": "2.0", "method": "Application.SetVolume", "params": { "volume": 95}, "id": 1}
Using the above code sets the volume to a fixed amount. No problem there. But what I would like is a button to adjust the volume in increments of 5 (don't care if it's dB or %, just an example) So I tried:
Code:
{"jsonrpc": "2.0", "method": "Application.SetVolume", "params": { "volume": "increment"}, "id": 1}
..but that doesn't appear to do anything. I'm using REST on Chrome to test my code.
Hope someone can help, I've read a lot of threads and the XBMC Wiki but can't seem to get the right answer