Kodi Community Forum
Start disc playing with Json API - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Start disc playing with Json API (/showthread.php?tid=159594)



Start disc playing with Json API - denis44 - 2013-03-18

Hi,

Is there a way with the Json API to make XBMC start playing the current disc (CD, DVD or Blu-ray) in the optical drive ?
I have tried this :
{ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "file": "D:\" } }, "id": 1 }
and this :
{ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "path": "D:\" } }, "id": 1 }
(where D:\ is my optical drive)
with no success. XBMC returns "OK", but the playing doesn't start. Of course, it works when I use the "Play disc" entry in the main menu.

Thank you !