2013-09-30, 23:39
Hi All,
Been going around in circles with this one for a good hour or so now, so thought I'd ask for some help!
I'm unable to get a movie to play when I use the filename in Playlist.Add. I should add, it's fine when I use a movieID. But I'd rather use a file so I can use it for the TV Shows as well.
I start by clearing the playlist:
{"jsonrpc": "2.0", "id": 0, "method": "Playlist.Clear", "params": {"playlistid": 1}}
Then add to the playlist, using the filepath
{"jsonrpc": "2.0", "id": 1, "method": "Playlist.Add", "params": {"playlistid": 1, "item": {"file": "C:\Users\Home Theatre\Desktop\Movies\test\test.mkv"}}}
Then, open the playlist:
{"jsonrpc": "2.0", "id": 2, "method": "Player.Open", "params": {"item": {"playlistid": 1}}}
Long and short is that nothing is happening, getting no response back from XBMC, so finding this really hard to debug.
I'm using post rather than get, so am I right in thinking I don't need to URL encode?
Any advice welcome, especially if there's any easier way of achieving this that I don't know about.
Cheers
Dave
Been going around in circles with this one for a good hour or so now, so thought I'd ask for some help!
I'm unable to get a movie to play when I use the filename in Playlist.Add. I should add, it's fine when I use a movieID. But I'd rather use a file so I can use it for the TV Shows as well.
I start by clearing the playlist:
{"jsonrpc": "2.0", "id": 0, "method": "Playlist.Clear", "params": {"playlistid": 1}}
Then add to the playlist, using the filepath
{"jsonrpc": "2.0", "id": 1, "method": "Playlist.Add", "params": {"playlistid": 1, "item": {"file": "C:\Users\Home Theatre\Desktop\Movies\test\test.mkv"}}}
Then, open the playlist:
{"jsonrpc": "2.0", "id": 2, "method": "Player.Open", "params": {"item": {"playlistid": 1}}}
Long and short is that nothing is happening, getting no response back from XBMC, so finding this really hard to debug.
I'm using post rather than get, so am I right in thinking I don't need to URL encode?
Any advice welcome, especially if there's any easier way of achieving this that I don't know about.
Cheers
Dave