2010-10-31, 22:15
Tolriq Wrote:If you have added the files by filename instead of songid then you loose meta data
I've reported that earlier it does that since beta 3 and even in the interface (just start a movie from the file mode instead of library and pause, most skins will show the filename instead of the movie name).
About RAW TCP i've got a stupid question, but i suppose that if you send multiple request in the same time the answer came one after another and you must use the ID to find witch answer correspond to what request. But what about announcement ?
And last question more programing oriented than JSON but since it's to try the RAW port
Any idea on how to handle the RAW TCP when you have background threads that do pings and check / get now playing, and synchronous calls for database syncs or some commands sending not asynchronous ? (Well what should be the correct dev model to get corresponding data to corresponding request )
Just to make it clear, there is no garantue in jsonrpc spec that you will get the responses in sync, this is why you have the ID.
Say I send methodX and methodY with ID 1 and 2. The responses I could get is responseY id 2 and then responseX id 1. Adding on is announcements they can happen whenever They do not have ID though.
This is why for tcp you really should have a message queue and handle the responses based on ID.