Kodi Community Forum
playlist add elements and execute the last element - 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)
+---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174)
+---- Thread: playlist add elements and execute the last element (/showthread.php?tid=309284)



playlist add elements and execute the last element - isdito - 2017-03-10

Hello.

With this

Code:
            url='http://'+ip_sel+':'+puerto_sel+'/jsonrpc?request=    {"jsonrpc":"2.0","id":1,"method":"Playlist.Add","params":{"playlistid":1,"item":{"file":"/home/osmc/Movies/'+flashmo_tn_list[next_pic_no].filename+'"}}}';

I add a element in the playlist of video, but not play the element. And when execute the second example clean all the list.

Code:
            url='http://'+ip_sel+':'+puerto_sel+'/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"/home/osmc/Movies/'+flashmo_tn_list[next_pic_no].filename+'"}}}';

I will like insert element and after that play that element the last one.

Thank you