Posts: 23
Joined: Dec 2016
Reputation:
0
So I am trying to write webcore code to play a particular playlist (Vocal Trance). Of course, webcore has a Play Track command but not a Play Playlist command. After lots of reading I am thinking I will have to use JSON-RPC to get Kodi to play a playlist. Thoughts on how I would do that?
Posts: 15
Joined: Nov 2008
Reputation:
0
nissse
Junior Member
Posts: 15
Any working solution to play a PVR channel ?
This worked before updating to kodi 18 but not anymore
{"id":1,"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"channelid":167}}}
send error: Error: Server responded with error: Invalid params
Posts: 23
Joined: Dec 2016
Reputation:
0
So the above method that I am using to play a playlist with webCoRE is working very well. But, when Kodi starts playing the playlist, it plays just a couple of seconds of a song and then advances to another song and proceeds normally. How can I fix that?
Posts: 167
Joined: Jan 2016
Reputation:
9
There are too many things wrong with your example to even begin to look at it. The reference to JQuery needs to at least be inside the HTML tag, preferably in the head, which you're lacking. You don't appear to even be using JQuery. You have html tags inside your JS, and you have JS outside of the JS tag. Last of all, you're not making a call to JSON-RPC. Hint: use AJAX.
Posts: 15
Joined: Oct 2015
Reputation:
0
I am trying to find a way to read in the responce from kodi after a call to get ie the player id or title of movie wich is playing.
the example was only to test the split of the pairs of data.
i am not a js programmer. ive got experience in delphi and php only