I'm a trier - always have been, so I tried learning this from already updated projects. Let me know if I'm on the right track please!
Looks like I have found a lot of changes for this and most of which can be done in xbmcsonlib.php
My understanding is the variable should not change, but the parameters should, else it will cause more problems, changing the variables is going to be a very big job.
So far, I have got this from other projects...
Example (this, I think, is for the controls for NowPlaying Widget?)
Code:
//VideoPlayer
//'VideoPlayer.BigSkipBackward' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.BigSkipBackward", "id": 1}'),
'VideoPlayer.BigSkipBackward' => array('call' => '{"jsonrpc": "2.0", "method": "Player.Seek", "params": {"value": "bigbackward"}, "id": 1}'),
//'VideoPlayer.BigSkipForward' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.BigSkipForward", "id": 1}'),
'VideoPlayer.BigSkipForward' => array('call' => '{"jsonrpc": "2.0", "method": "Player.Seek", "params": {"value": "bigforward"}, "id": 1}'),
//'VideoPlayer.Forward' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.Forward", "id": 1}'),
'VideoPlayer.Forward' => array('call' => '{"jsonrpc": "2.0", "method": "Player.SetSpeed", "params": {"speed": "increment"}, "id": 1}'),
[b]//NOT WORKED THESE 2 OUT - BUT THINK IT MIGHT BE NOW COMBINED -[/b]
//'VideoPlayer.GetPercentage' => array('call' => '{"jsonrpc": "2.0", "method": "Player.GetProperties", "params": {"properties": [ "playlistid", "speed", "position", "totaltime", "time" ] }, "id": 1}
//'VideoPlayer.GetTime ' => array('call' => '{"jsonrpc": "2.0", "method": "Player.GetProperties", "params": {"properties": [ "playlistid", "speed", "position", "totaltime", "time" ] }, "id": 1}
'VideoPlayer.GetPercentage' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.GetPercentage", "id": 1}'),
'VideoPlayer.GetTime' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.GetTime", "id": 1}'),
//'VideoPlayer.PlayPause' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.PlayPause", "id": 1}'),
'VideoPlayer.PlayPause' => array('call' => '{"jsonrpc": "2.0", "method": "Player.PlayPause", "id": 1}'),
//'VideoPlayer.Rewind' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.Rewind", "id": 1}'),
'VideoPlayer.Rewind' => array('call' => '{"jsonrpc": "2.0", "method": "Player.SetSpeed", "params": {"speed": "decrement"}, "id": 1}'),
//'VideoPlayer.SkipPrevious' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.SkipPrevious", "id": 1}'),
'VideoPlayer.SkipPrevious' => array('call' => '{"jsonrpc": "2.0", "method": "Player.GoPrevious", "id": 1}'),
//'VideoPlayer.SkipNext' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.SkipNext", "id": 1}'),
'VideoPlayer.SkipNext' => array('call' => '{"jsonrpc": "2.0", "method": "Player.GoNext", "id": 1}'),
'VideoPlayer.SmallSkipBackward' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.SmallSkipBackward", "id": 1}'),
'VideoPlayer.SmallSkipForward' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.SmallSkipForward", "id": 1}'),
[b] //NOT WORKED THIS 1 OUT - BUT THINK IT MIGHT BE NOW COMBINED WITH Player.GetProperties - [/b]
'VideoPlayer.State' => array('call' => '{"jsonrpc": "2.0", "method": "VideoPlayer.State", "id": 1}'),
'VideoPlayer.Stop' => array('call' => '{"jsonrpc": "2.0", "method": "Player.Stop", "id": 1}'),
If this IS the right to go - it's NOT working and I'm getting myself even more confused!