2014-03-27, 11:57
Hi,
I am writing an XBMC binding for the openHAB home automation software package. After reading the XBMC JSON RPC API I added some checks to ensure the playerid returned in any Player.OnXXX events was between 0 and 2 (inclusive).
However when I try and play a recorded TV show (using the TVHeadend PVR) I get an OnPlay event as such;
So the type is coming back as movie, which is a little weird, but I can only guess this is just a default? The bigger problem is the playerid of -1. What does this mean? Is this a bug, or is there a new player type supported in Frodo? Specifically for recorded PVR content?
I have search high and low and can't find any reference anywhere of this happening.
Thanks,
Ben
It should be noted that when plaing a Movie, TV Show or Live TV the playerid comes back as 1 (as expected, i.e. video) with the item.type = movie, episode or channel respectively. Again, all as expected. It is just playing recorded PVR content that has this issue.
I am writing an XBMC binding for the openHAB home automation software package. After reading the XBMC JSON RPC API I added some checks to ensure the playerid returned in any Player.OnXXX events was between 0 and 2 (inclusive).
However when I try and play a recorded TV show (using the TVHeadend PVR) I get an OnPlay event as such;
Code:
{"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"title":"","type":"movie"},"player":{"playerid":-1,"speed":1}},"sender":"xbmc"}}
So the type is coming back as movie, which is a little weird, but I can only guess this is just a default? The bigger problem is the playerid of -1. What does this mean? Is this a bug, or is there a new player type supported in Frodo? Specifically for recorded PVR content?
I have search high and low and can't find any reference anywhere of this happening.
Thanks,
Ben
It should be noted that when plaing a Movie, TV Show or Live TV the playerid comes back as 1 (as expected, i.e. video) with the item.type = movie, episode or channel respectively. Again, all as expected. It is just playing recorded PVR content that has this issue.