opdenkamp/xbmc — pull request #626 by RobertMe (2012-08-26 19:38:06+00:00)
Title: Add LiveTV support to Player interface in JSON Player

Add proper LiveTV support to the Player.X methods of the JSON-RPC API.

Some changes include:
GoNext/GoPrevious act as channel up/down
GoTo(position) switches to channel number position
GetItem integration, exposes Epg data, so getting genre, plot, ... work, includes new starttime, endtime and channel properties
Added a new "islive" property on the Player which is true for live tv and false otherwise
Send OnStop and OnStart to notify client about channel switch (sounds odd, but it's the same as a playlist does when it switches to another item)

Most of these are implemented in a backwards compatible manner. So clients which don't know PVR would still get some/most of the new "features". So for one there is no need to add some special "channel up" handling as it's the "old" Player.GoNext etc.

What's currently missing is the OnStop & OnStart notification when one program is finished and the other starts. So this needs to be added before it can be merged (will add this in the upcomming day(s)).