I am using controller.js to figure out the API. So far I have successfully found a way to detect the status of a sink and when the sink becomes active I can trigger a macro that turns on my receiver and switches to the correct input and then when the sink goes inactive for 10 mins it will then turn off my receiver.
What I am trying to do now is write a Now Playing interface. First I am using SessionGetDetails to gather up the parent, item, instance and user and then calling SourceGetItemDetails like this:
But it isn't returning anything.
What am I missing? I suspect it has to do with the user parm being wrong. Could you give me some hints?
Thanks in advance!