Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
While it is arguably nice to get the state on connect its hard to justify it being sent. Its not really xbmc's job to make sure the state is correct at the client, i.e. xbmc doesn't necessarily know what the client wants.
For example say you make a client which allows you to manipulate the library but handles nothing playback worthy, is it sane sending that even then, how can xbmc know this.
What initial states should we send, if playback then it might make sense making sure that the library state is correct, which essentially means sending every item id in the library.
As you see from these examples its not possible really. If xbmc knew what states the client is indeed interested in then yes, we could. but it may need a redesign of the API, for very little benefit. Most RPC's out there assumes that the client gets the initial states afaik.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
Well we send only state changes, which is by far less bandwith in the library case. And atm we do set those on by default for easy development, that might change at some point.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 250
Joined: Jul 2008
Reputation:
0
@Montellese: ok i get the way it works for Notifications. My state machine will ask for playing state on connection. Thanks for taking the time to explain.
Posts: 250
Joined: Jul 2008
Reputation:
0
Great. You did an amazing job!
Posts: 250
Joined: Jul 2008
Reputation:
0
i am now playing with the new json. It is really really great!
I especially love the new introspect and the error responses!!!
Now time for the questions:
-VideoPlaylist.GetItems : is there a way to get the Library.Id if there is one? That could be very useful if we then want to do something like VideoLibrary.GetMovieDetails
-about sending multiple request a the same time. If i take the example of VideoLibrary.GetMovies and VideoLibrary.GetTVShows. WOuld it make responses time shorter if sending both at the same time ( i am taking that example as i suppose they access the database, and that you say in introspect that cast and set may make response time longer)
Thanks a lot for that big update. It helps a lot while developing.