2019-01-03, 02:50
Hi there.
I'm developing a web interface to Kodi, which will display and control playlists, and is still on an early stage of development.
I'm trying to show on my page all the tracks currently on the playlist, which I get calling "Playlist.GetItems". I then receive a response with, in my current case, some 11 songs. Communication is done through websockets.
I then wish to know the song artists. I simply iterate the playlist and send a "AudioLibrary.GetSongDetails" message with each song's songid.
The problem is that I do nor get all the responses... Sometimes I get 8, sometimes 11 responses, and thus my playlist is not fully updated.
Could this be a problem with the JSON-RPC server? Am I sending too much messages at the same time and thus flood the system? Should I send a message only after receiving the response to the previous one? Or could this possibly be a bug?
Thanks and best regards, Luís
I'm developing a web interface to Kodi, which will display and control playlists, and is still on an early stage of development.
I'm trying to show on my page all the tracks currently on the playlist, which I get calling "Playlist.GetItems". I then receive a response with, in my current case, some 11 songs. Communication is done through websockets.
I then wish to know the song artists. I simply iterate the playlist and send a "AudioLibrary.GetSongDetails" message with each song's songid.
The problem is that I do nor get all the responses... Sometimes I get 8, sometimes 11 responses, and thus my playlist is not fully updated.
Could this be a problem with the JSON-RPC server? Am I sending too much messages at the same time and thus flood the system? Should I send a message only after receiving the response to the previous one? Or could this possibly be a bug?
Thanks and best regards, Luís