HTTP API PlayListNext() problem - 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: HTTP API PlayListNext() problem (/showthread.php?tid=32101) |
HTTP API PlayListNext() problem - monti - 2008-03-21 Hi. I am trying to use the HTTP API, and I am only partially successful. This works, and plays the selected file: Code: http://10.0.0.64//xbmcCmds/xbmcHttp?command=PlayFile¶meter=smb://musikk/slottet/mp3/Covenant/Northern%20Lights/Covenant_03_Bullet.mp3 This works, it adds the song to the playlist: Code: http://10.0.0.64//xbmcCmds/xbmcHttp?command=AddToPlaylist¶meter=smb://musikk/slottet/mp3/Covenant/Northern%20Lights/Covenant_03_Bullet.mp3;0;music;1 This works, it shows the song: Code: http://10.0.0.64//xbmcCmds/xbmcHttp?command=GetPlaylistContents¶meter=0 These work, I set the current playlist to 0 (music playlist) and verify it: Code: http://10.0.0.64//xbmcCmds/xbmcHttp?command=SetCurrentPlaylist¶meter=0 However, neither of these work, the song isn't played: Code: http://10.0.0.64//xbmcCmds/xbmcHttp?command=PlayNext Also, adding a folder with AddToPlaylist does not work: Code: http://10.0.0.64//xbmcCmds/xbmcHttp?command=AddToPlaylist¶meter=smb://musikk/slottet/mp3/Covenant/Northern%20Lights/;0;music;1 Any ideas? - plex - 2008-03-22 I can verify the same results, I also get this odd behavior, only thing I find to work is get use the webgui to "select" one of the items already in the playlist, this select command seems to be relevant to the form though, so it can only be used through the form It would be nice if someone could clear up how to start playing the playlist once you've added items to it via HTTP API commands, because two of us haven't been able to. - smcnally75 - 2008-03-22 Are you running the latest release? It is working fine for me...I'll write what I did to see if maybe I'm misunderstanding you though. 1--I started fresh and went into music and added a bunch of songs to a blank playlist. 2--I sent the command Code: http://192.168.15.105/xbmcCmds/xbmcHttp?command=GetCurrentPlaylist 3--I sent the command Code: http://192.168.15.105/xbmcCmds/xbmcHttp?command=PlayListNext 4--I sent the command Code: http://192.168.15.105/xbmcCmds/xbmcHttp?command=PlayListPrev 5--I sent the command Code: http://192.168.15.105/xbmcCmds/xbmcHttp?command=GetCurrentPlaylist - smcnally75 - 2008-03-22 plex Wrote:It would be nice if someone could clear up how to start playing the playlist once you've added items to it via HTTP API commands, because two of us haven't been able to. Also, just to be clear, I did cue the songs via HTTP API too. If you have been adding songs to the playlist with nothing playing then you want to send the following command to start the playlist from the beginning Code: http://192.168.15.105/xbmcCmds/xbmcHttp?command=SetPlaylistSong¶meter=1 - monti - 2008-04-13 OK, I got this to work: Code: http://10.0.0.64//xbmcCmds/xbmcHttp?command=Action(13) // ACTION_STOP |