XBMC2->JSONRPC->Player->GetProperties and parameters:
Code: Select all
[1, ["currentaudiostream"]]Then you can use this:
Code: Select all
eg.result["currentaudiostream"]["codec"]Code: Select all
eg.result["currentaudiostream"]["name"]I find a Python script is best but not always necessary.Another question:
to interpret the json-rpc reply, I have to write a small python snipplet in eventghost?
You can put this in a Python command after the JSORPC action and it will create different events depending on the codec:
Code: Select all
eg.TriggerEvent("audio-%s" % eg.result["currentaudiostream"]["codec"])Hope this helps.
jonib
