How to get current channel name or ID?
#1
Hello,

i want to retrieve the name of the current channel of the PVR via JSON RPC but i cannot find any references in the wiki docs. It would also be sufficient to get the current channel ID as it would enable retrieving additional channel details via PVR.GetChannel().

Any ideas?

So lonG
Reply
#2
Code:
{"jsonrpc": "2.0", "method": "Player.GetItem", "params": { "properties": ["art", "title", "album", "artist", "season", "episode", "duration", "showtitle", "tvshowid", "thumbnail", "file", "fanart","streamdetails"], "playerid": 1 }, "id": "OnPlayGetItem"}
Returns:
Code:
{"id":"OnPlayGetItem","jsonrpc":"2.0","result":{"item":{"art":{},"fanart":"","id":109,"label":"BBC ONE HD","thumbnail":"","title":"Saturday Kitchen Live","type":"channel"}}}
Label being the channel name and id being the channelid Smile
Image
AWXi - Ajax web interface. Wiki
Reply

Logout Mark Read Team Forum Stats Members Help
How to get current channel name or ID?0