@Montellese: Good luck with your master's thesis
This is just an observation and nothing urgent. When starting music playback on xbmc from "Music Library => Songs" all songs are queued in the music playlist and xbmc sends a notification for every song in your library...
Code:
{"jsonrpc":"2.0","method":"Playlist.OnAdd","params":{"data":{"item":{"id":23630,"type":"song"}
As a result apps listening on port 9090 may get hit by > 10'000 notifications at the same time. I have the feeling that the notifications are sent from the ui thread and as a result xbmc freezes until all notifications are read and processed by the client(s) which can take a while (10 seconds or more... ) (Tested on xbmc frodo)
I can probably just selectively disable playlist notifications using "Configuration.Notifications" but I actually would like to use the Playlist.OnXXX notifications since you don't have to poll xbmc for playlist changes every couple of seconds.
Maybe notifications could be grouped somehow using additional "item" types so that we get a notification that an album with id xx or a genre with id xx was added instead of sending notifications for a large list of songs. Maybe also something like Playlist.OnAddAll to notify clients that all songs have been added. Also there is no notification sent when moving items up/down in the playqueue.
I will add a feature requests in a separate thread.