Permalink
Browse files

jsonrpc: go channel up/down on GoPrevious/GoNext for LiveTV player

  • Loading branch information...
1 parent 2ca8c1e commit f9886188875a02e6726c5912f6f9c411030f94d3 @RobertMe RobertMe committed Jul 30, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 xbmc/interfaces/json-rpc/PlayerOperations.cpp
@@ -567,6 +567,11 @@ JSONRPC_STATUS CPlayerOperations::GoPrevious(const CStdString &method, ITranspor
SendSlideshowAction(ACTION_PREV_PICTURE);
return ACK;
+ case LiveTV:
+ unsigned int newChannelNumber;
+ g_PVRManager.ChannelDown(&newChannelNumber);
+ return ACK;
+
case None:
default:
return FailedToExecute;
@@ -586,6 +591,11 @@ JSONRPC_STATUS CPlayerOperations::GoNext(const CStdString &method, ITransportLay
SendSlideshowAction(ACTION_NEXT_PICTURE);
return ACK;
+ case LiveTV:
+ unsigned int newChannelNumber;
+ g_PVRManager.ChannelUp(&newChannelNumber);
+ return ACK;
+
case None:
default:
return FailedToExecute;

0 comments on commit f988618

Please sign in to comment.