2010-09-04, 20:54
Hi, I'm working on my XBMCRepeat plugin for EventGhost.
I started to add some more functionality using the HTTP API, but as that is going away I'm trying this newfangled JSON-RPC.
I have gotten same stuff working, but now I'm stuck (hopefully its nothing embarrassing).
So I'm trying to use VideoPlaylist.Add to add a video file to the playlist in XBMC (Dharma Beta1)
The below command adds the "e:\test.avi" to the playlist and works, but there is no text, only an empty(blank) line when looking in the "Now playing" window.The below is the result from VideoPlaylist.GetItems:So I figured I need to add a Label so I tried the below:Still works but still no label
So can someone tell me what I'm doing wrong? and/or point me to some more reading material about the parameter syntax.
jonib
I started to add some more functionality using the HTTP API, but as that is going away I'm trying this newfangled JSON-RPC.
I have gotten same stuff working, but now I'm stuck (hopefully its nothing embarrassing).
So I'm trying to use VideoPlaylist.Add to add a video file to the playlist in XBMC (Dharma Beta1)
The below command adds the "e:\test.avi" to the playlist and works, but there is no text, only an empty(blank) line when looking in the "Now playing" window.
Code:
{"params": {"file": "E:\\test.avi"}, "jsonrpc": "2.0", "method": "VideoPlaylist.Add", "id": 1}
Code:
{
"file" : "E:\\test.avi",
"label" : "",
"thumbnail" : "special://home/userdata/Thumbnails/Video/4/auto-455227d7.tbn"
}
Code:
{"params": {"file": "E:\\test.avi", "label": "Test"}, "jsonrpc": "2.0", "method": "VideoPlaylist.Add", "id": 1}
So can someone tell me what I'm doing wrong? and/or point me to some more reading material about the parameter syntax.
jonib